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/offset.js | |
parent | 6c38ebbd47c6b0fa654733819bd5ae36c1ac6c48 (diff) | |
download | jquery-3d732cca6b5076a9d13eee98e2b075b37384cd91.tar.gz jquery-3d732cca6b5076a9d13eee98e2b075b37384cd91.zip |
Core: deprecate jQuery.isFunction
Fixes gh-3609
Diffstat (limited to 'src/offset.js')
-rw-r--r-- | src/offset.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/offset.js b/src/offset.js index 2ef0adb04..83b1c3a53 100644 --- a/src/offset.js +++ b/src/offset.js @@ -3,6 +3,7 @@ define( [ "./core/access", "./var/document", "./var/documentElement", + "./var/isFunction", "./css/var/rnumnonpx", "./css/curCSS", "./css/addGetHookIf", @@ -11,7 +12,7 @@ define( [ "./core/init", "./css", "./selector" // contains -], function( jQuery, access, document, documentElement, rnumnonpx, +], function( jQuery, access, document, documentElement, isFunction, rnumnonpx, curCSS, addGetHookIf, support, isWindow ) { "use strict"; @@ -46,7 +47,7 @@ jQuery.offset = { curLeft = parseFloat( curCSSLeft ) || 0; } - if ( jQuery.isFunction( options ) ) { + if ( isFunction( options ) ) { // Use jQuery.extend here to allow modification of coordinates argument (gh-1848) options = options.call( elem, i, jQuery.extend( {}, curOffset ) ); |