From c56c20cff07a79765245f6b2a43c4f9075fb6683 Mon Sep 17 00:00:00 2001 From: MichaelMackus Date: Wed, 11 May 2016 15:58:56 -0700 Subject: [PATCH] Fix AJAX data source error Fixes #4355 Verified in Firefox & Chromium --- src/js/select2/data/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/select2/data/ajax.js b/src/js/select2/data/ajax.js index 97d34160..a3e69987 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; }