Update select2.js to use typeof check instead of jQuery.isFunction() for jQuery 3 compatibility
This commit is contained in:
parent
2e0c538e8f
commit
56dbdedfb2
|
@ -3547,7 +3547,7 @@ S2.define('select2/data/ajax',[
|
|||
|
||||
if (this._request != null) {
|
||||
// JSONP requests cannot always be aborted
|
||||
if ($.isFunction(this._request.abort)) {
|
||||
if ( typeof this._request.abort === 'function' ) {
|
||||
this._request.abort();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue