Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Speed up status check in isSuccess
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend committed Jan 23, 2015
1 parent 367df82 commit ea1feb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@

isSuccess: function(xhr) {
var status = xhr.status || 0;
return (status >= 200 && status < 300);
return status && (status >= 200 && status < 300);
},

processResponse: function(xhr) {
Expand Down

0 comments on commit ea1feb3

Please sign in to comment.