diff options
author | Jason Bedard <jason+github@jbedard.ca> | 2017-12-12 22:43:30 -0800 |
---|---|---|
committer | Jason Bedard <jason+github@jbedard.ca> | 2018-01-15 09:26:19 -0800 |
commit | 3d732cca6b5076a9d13eee98e2b075b37384cd91 (patch) | |
tree | 7ad2375d276c212e7d252554b3f87e5b0b3bec5e /src/traversing | |
parent | 6c38ebbd47c6b0fa654733819bd5ae36c1ac6c48 (diff) | |
download | jquery-3d732cca6b5076a9d13eee98e2b075b37384cd91.tar.gz jquery-3d732cca6b5076a9d13eee98e2b075b37384cd91.zip |
Core: deprecate jQuery.isFunction
Fixes gh-3609
Diffstat (limited to 'src/traversing')
-rw-r--r-- | src/traversing/findFilter.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/traversing/findFilter.js b/src/traversing/findFilter.js index 3bd036a18..023a2cefb 100644 --- a/src/traversing/findFilter.js +++ b/src/traversing/findFilter.js @@ -1,9 +1,10 @@ define( [ "../core", "../var/indexOf", + "../var/isFunction", "./var/rneedsContext", "../selector" -], function( jQuery, indexOf, rneedsContext ) { +], function( jQuery, indexOf, isFunction, rneedsContext ) { "use strict"; @@ -11,7 +12,7 @@ var risSimple = /^.[^:#\[\.,]*$/; // Implement the identical functionality for filter and not function winnow( elements, qualifier, not ) { - if ( jQuery.isFunction( qualifier ) ) { + if ( isFunction( qualifier ) ) { return jQuery.grep( elements, function( elem, i ) { return !!qualifier.call( elem, i, elem ) !== not; } ); |