From bde9f6cbdc8ec26e543412ed226d5620ed4f5974 Mon Sep 17 00:00:00 2001 From: matsievskyav Date: Mon, 20 Jul 2015 07:41:18 +0300 Subject: [PATCH] baconjs [http://baconjs.github.io/] definition --- baconjs/baconjs-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baconjs/baconjs-tests.ts b/baconjs/baconjs-tests.ts index 79eef483c..e542ef1c9 100644 --- a/baconjs/baconjs-tests.ts +++ b/baconjs/baconjs-tests.ts @@ -330,7 +330,7 @@ function Errors() { return Bacon.retry({ source: () => ajaxCall(url), retries: 5, - isRetryable: error => error.status !== 404, + isRetryable: (error:JQueryXHR) => error.status !== 404, delay: context => 100 // Just use the same delay always }); });