select2: fix handling of aborted queries (#17161)

This commit is contained in:
Frédéric Péters 2017-06-26 10:50:18 +02:00 committed by Thomas NOEL
parent 61b74c8078
commit 03f23bc5b8
2 changed files with 3 additions and 3 deletions

View File

@ -3469,7 +3469,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 ($request.status && $request.status === '0') {
if ($request.status === 0 || $request.status === '0') {
return;
}

File diff suppressed because one or more lines are too long