aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes/attr.js
diff options
context:
space:
mode:
authorkaran-96 <karanbatra96@gmail.com>2017-01-17 22:22:50 +0530
committerMichał Gołębiowski <m.goleb@gmail.com>2017-03-01 11:48:11 +0100
commitac9e3016645078e1e42120822cfb2076151c8cbe (patch)
tree51eecd51ad23004e68a20a448fc34fbde9d474b6 /src/attributes/attr.js
parentbd984f0ee2cf40107a669d80d92566b8625b1e6b (diff)
downloadjquery-ac9e3016645078e1e42120822cfb2076151c8cbe.tar.gz
jquery-ac9e3016645078e1e42120822cfb2076151c8cbe.zip
Core: Deprecate jQuery.nodeName
Fixes gh-3475 Closes gh-3505
Diffstat (limited to 'src/attributes/attr.js')
-rw-r--r--src/attributes/attr.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/attributes/attr.js b/src/attributes/attr.js
index 2d9c76feb..6b5cbd2c4 100644
--- a/src/attributes/attr.js
+++ b/src/attributes/attr.js
@@ -1,10 +1,11 @@
define( [
"../core",
"../core/access",
+ "../core/nodeName",
"./support",
"../var/rnothtmlwhite",
"../selector"
-], function( jQuery, access, support, rnothtmlwhite ) {
+], function( jQuery, access, nodeName, support, rnothtmlwhite ) {
"use strict";
@@ -74,7 +75,7 @@ jQuery.extend( {
type: {
set: function( elem, value ) {
if ( !support.radioValue && value === "radio" &&
- jQuery.nodeName( elem, "input" ) ) {
+ nodeName( elem, "input" ) ) {
var val = elem.value;
elem.setAttribute( "type", value );
if ( val ) {