Update select2.js to use typeof check instead of jQuery.isFunction() for jQuery 3 compatibility

This commit is contained in:
Jonathan Sadowski 2021-03-04 17:06:59 -06:00
parent 2e0c538e8f
commit 56dbdedfb2
1 changed files with 1 additions and 1 deletions

View File

@ -3547,7 +3547,7 @@ S2.define('select2/data/ajax',[
if (this._request != null) { if (this._request != null) {
// JSONP requests cannot always be aborted // JSONP requests cannot always be aborted
if ($.isFunction(this._request.abort)) { if ( typeof this._request.abort === 'function' ) {
this._request.abort(); this._request.abort();
} }