Skip to content

Commit 7278aff

Browse files
author
Alexander Krupko
committed
All 2xx ajax response status codes are successful now (fixed #5)
1 parent 5b6715a commit 7278aff

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/ExtendedJS.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @copyright 2016 Avrora Team www.avrora.team
1010
* @license MIT
1111
* @tutorial http://extendedjs.avrora.team
12-
* @version 1.0.3
12+
* @version 1.0.4
1313
*/
1414

1515
!function()
@@ -772,7 +772,7 @@
772772
var response = xhr.responseText;
773773
status = 'error';
774774

775-
if (xhr.status === 200) {
775+
if (xhr.status >= 200 && xhr.status < 300) {
776776
status = 'success';
777777

778778
if (P.dataType.toLowerCase() === 'json') {

0 commit comments

Comments
 (0)