Skip to content

Commit

Permalink
Fix AJAX data source error
Browse files Browse the repository at this point in the history
Fixes #4355

Verified in Firefox & Chromium
  • Loading branch information
MichaelMackus authored and alexweissman committed Oct 26, 2017
1 parent 50bf3cd commit c56c20c
Showing 1 changed file with 1 addition and 1 deletion.
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 ($request.status && $request.status === '0') {
if ('status' in $request && $request.status === 0) {
return;
}

Expand Down

0 comments on commit c56c20c

Please sign in to comment.