Skip to content

Commit 19032f0

Browse files
committed
update version
1 parent 7b448e5 commit 19032f0

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

dist/jquery.ajax-retry.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Ajax Retry - v0.2.2 - 2013-02-05
1+
/*! jQuery Ajax Retry - v0.2.3 - 2013-02-07
22
* https://github.com/johnkpaul/jquery-ajax-retry
33
* Copyright (c) 2013 John Paul; Licensed MIT */
44

@@ -10,6 +10,9 @@
1010
if(opts.timeout){
1111
this.timeout = opts.timeout;
1212
}
13+
if (opts.statusCodes) {
14+
this.statusCodes = opts.statusCodes;
15+
}
1316
return this.pipe(null, pipeFailRetry(this, opts.times));
1417
};
1518
});
@@ -29,7 +32,7 @@
2932
.pipe(output.resolve, output.reject);
3033
}
3134

32-
if(times > 1){
35+
if (times > 1 && (!jqXHR.statusCodes || $.inArray(input.status, jqXHR.statusCodes) > -1)) {
3336
// time to make that next request...
3437
if(jqXHR.timeout !== undefined){
3538
setTimeout(nextRequest, jqXHR.timeout);

dist/jquery.ajax-retry.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jquery.ajax-retry",
33
"title": "jQuery Ajax Retry",
44
"description": "Retry ajax calls using the deferred API",
5-
"version": "0.2.2",
5+
"version": "0.2.3",
66
"homepage": "https://github.com/johnkpaul/jquery-ajax-retry",
77
"author": {
88
"name": "John Paul",

0 commit comments

Comments
 (0)