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/deprecated.js | |
parent | 6c38ebbd47c6b0fa654733819bd5ae36c1ac6c48 (diff) | |
download | jquery-3d732cca6b5076a9d13eee98e2b075b37384cd91.tar.gz jquery-3d732cca6b5076a9d13eee98e2b075b37384cd91.zip |
Core: deprecate jQuery.isFunction
Fixes gh-3609
Diffstat (limited to 'src/deprecated.js')
-rw-r--r-- | src/deprecated.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/deprecated.js b/src/deprecated.js index 8523ee5b8..82ef686e0 100644 --- a/src/deprecated.js +++ b/src/deprecated.js @@ -2,9 +2,10 @@ define( [ "./core", "./core/nodeName", "./core/camelCase", + "./var/isFunction", "./var/isWindow", "./var/slice" -], function( jQuery, nodeName, camelCase, isWindow, slice ) { +], function( jQuery, nodeName, camelCase, isFunction, isWindow, slice ) { "use strict"; @@ -44,7 +45,7 @@ jQuery.proxy = function( fn, context ) { // Quick check to determine if target is callable, in the spec // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { + if ( !isFunction( fn ) ) { return undefined; } @@ -70,6 +71,7 @@ jQuery.holdReady = function( hold ) { jQuery.isArray = Array.isArray; jQuery.parseJSON = JSON.parse; jQuery.nodeName = nodeName; +jQuery.isFunction = isFunction; jQuery.isWindow = isWindow; jQuery.camelCase = camelCase; |