diff --git a/src/js/select2/data/ajax.js b/src/js/select2/data/ajax.js index 3309298f6c..03cf28d63f 100644 --- a/src/js/select2/data/ajax.js +++ b/src/js/select2/data/ajax.js @@ -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; }