diff options
author | karan-96 <karanbatra96@gmail.com> | 2017-01-17 22:22:50 +0530 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2017-03-01 11:48:11 +0100 |
commit | ac9e3016645078e1e42120822cfb2076151c8cbe (patch) | |
tree | 51eecd51ad23004e68a20a448fc34fbde9d474b6 /src/offset.js | |
parent | bd984f0ee2cf40107a669d80d92566b8625b1e6b (diff) | |
download | jquery-ac9e3016645078e1e42120822cfb2076151c8cbe.tar.gz jquery-ac9e3016645078e1e42120822cfb2076151c8cbe.zip |
Core: Deprecate jQuery.nodeName
Fixes gh-3475
Closes gh-3505
Diffstat (limited to 'src/offset.js')
-rw-r--r-- | src/offset.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/offset.js b/src/offset.js index 467526d2a..1e5e04079 100644 --- a/src/offset.js +++ b/src/offset.js @@ -9,9 +9,11 @@ define( [ "./css/support", "./core/init", + "./core/nodeName", "./css", "./selector" // contains -], function( jQuery, access, document, documentElement, rnumnonpx, curCSS, addGetHookIf, support ) { +], function( jQuery, access, document, documentElement, rnumnonpx, curCSS, addGetHookIf, support, + nodeName ) { "use strict"; @@ -129,7 +131,7 @@ jQuery.fn.extend( { // Get correct offsets offset = this.offset(); - if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) { + if ( !nodeName( offsetParent[ 0 ], "html" ) ) { parentOffset = offsetParent.offset(); } |