From ac9e3016645078e1e42120822cfb2076151c8cbe Mon Sep 17 00:00:00 2001 From: karan-96 Date: Tue, 17 Jan 2017 22:22:50 +0530 Subject: Core: Deprecate jQuery.nodeName Fixes gh-3475 Closes gh-3505 --- src/traversing.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/traversing.js') 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; } -- cgit v1.2.3