aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes/val.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/val.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/val.js')
-rw-r--r--src/attributes/val.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/attributes/val.js b/src/attributes/val.js
index 9245e4e0a..04572ba05 100644
--- a/src/attributes/val.js
+++ b/src/attributes/val.js
@@ -2,8 +2,9 @@ define( [
"../core",
"../core/stripAndCollapse",
"./support",
- "../core/init"
-], function( jQuery, stripAndCollapse, support ) {
+ "../core/init",
+ "../core/nodeName"
+], function( jQuery, stripAndCollapse, support, nodeName ) {
"use strict";
@@ -121,7 +122,7 @@ jQuery.extend( {
// Don't return options that are disabled or in a disabled optgroup
!option.disabled &&
( !option.parentNode.disabled ||
- !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
+ !nodeName( option.parentNode, "optgroup" ) ) ) {
// Get the specific value for the option
value = jQuery( option ).val();