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/manipulation.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/manipulation.js')
-rw-r--r-- | src/manipulation.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index cadd89a2e..4e64cd132 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -18,13 +18,14 @@ define( [ "./core/DOMEval", "./core/init", + "./core/nodeName", "./traversing", "./selector", "./event" ], function( jQuery, concat, push, rcheckableType, access, rtagName, rscriptType, wrapMap, getAll, setGlobalEval, buildFragment, support, - dataPriv, dataUser, acceptData, DOMEval ) { + dataPriv, dataUser, acceptData, DOMEval, nodeName ) { "use strict"; @@ -49,8 +50,8 @@ var // Prefer a tbody over its parent table for containing new rows function manipulationTarget( elem, content ) { - if ( jQuery.nodeName( elem, "table" ) && - jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { + if ( nodeName( elem, "table" ) && + nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { return jQuery( ">tbody", elem )[ 0 ] || elem; } |