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/traversing.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/traversing.js')
-rw-r--r-- | src/traversing.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/traversing.js b/src/traversing.js index d96869017..cd7f747d5 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -5,9 +5,10 @@ define( [ "./traversing/var/siblings", "./traversing/var/rneedsContext", "./core/init", + "./core/nodeName", "./traversing/findFilter", "./selector" -], function( jQuery, indexOf, dir, siblings, rneedsContext ) { +], function( jQuery, indexOf, dir, siblings, rneedsContext, nodeName ) { "use strict"; @@ -143,14 +144,14 @@ jQuery.each( { return siblings( elem.firstChild ); }, contents: function( elem ) { - if ( jQuery.nodeName( elem, "iframe" ) ) { + if ( nodeName( elem, "iframe" ) ) { return elem.contentDocument; } // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only // Treat the template element as a regular one in browsers that // don't support it. - if ( jQuery.nodeName( elem, "template" ) ) { + if ( nodeName( elem, "template" ) ) { elem = elem.content || elem; } |