Skip to content

Commit

Permalink
Correct fix for select2#4355
Browse files Browse the repository at this point in the history
  • Loading branch information
Achim Hasenmueller committed May 3, 2017
1 parent 198c23d commit 908ebff
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/js/select2.full.js
Expand Up @@ -3487,7 +3487,7 @@ S2.define('select2/data/ajax',[
}, function () {
// Attempt to detect if a request was aborted
// Only works if the transport exposes a status property
if ('status' in $request.status === '0') {
if ('status' in $request && $request.status === '0') {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/js/select2.full.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/select2.js
Expand Up @@ -3487,7 +3487,7 @@ S2.define('select2/data/ajax',[
}, function () {
// Attempt to detect if a request was aborted
// Only works if the transport exposes a status property
if ('status' in $request.status === '0') {
if ('status' in $request && $request.status === '0') {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/js/select2.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/select2/data/ajax.js
Expand Up @@ -82,7 +82,7 @@ define([
}, function () {
// Attempt to detect if a request was aborted
// Only works if the transport exposes a status property
if ('status' in $request.status === '0') {
if ('status' in $request && $request.status === '0') {
return;
}

Expand Down

0 comments on commit 908ebff

Please sign in to comment.