From cd08d805a43c2a48c7e07a331573274e50c888c1 Mon Sep 17 00:00:00 2001 From: Michael Mackus Date: Mon, 20 Feb 2017 09:21:39 -0800 Subject: [PATCH] Check for string value --- src/js/select2/data/ajax.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/select2/data/ajax.js b/src/js/select2/data/ajax.js index a3e69987..d6aedf78 100644 --- a/src/js/select2/data/ajax.js +++ b/src/js/select2/data/ajax.js @@ -82,7 +82,8 @@ define([ }, function () { // Attempt to detect if a request was aborted // Only works if the transport exposes a status property - if ('status' in $request && $request.status === 0) { + if ('status' in $request && + ($request.status === 0 || $request.status === '0')) { return; }