Skip to content

Commit

Permalink
Remove deprecated calls to jQuery.isFunction (select2#5955)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthonius Alfred Andreas <aandreas@updraftplus.com>
  • Loading branch information
2 people authored and anttikuuskoski committed Mar 28, 2022
1 parent a558b76 commit 3ed71dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/select2/data/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ define([

if (this._request != null) {
// JSONP requests cannot always be aborted
if ($.isFunction(this._request.abort)) {
if (typeof this._request.abort === 'function') {
this._request.abort();
}

Expand Down

0 comments on commit 3ed71dd

Please sign in to comment.