aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
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/core
parentbd984f0ee2cf40107a669d80d92566b8625b1e6b (diff)
downloadjquery-ac9e3016645078e1e42120822cfb2076151c8cbe.tar.gz
jquery-ac9e3016645078e1e42120822cfb2076151c8cbe.zip
Core: Deprecate jQuery.nodeName
Fixes gh-3475 Closes gh-3505
Diffstat (limited to 'src/core')
-rw-r--r--src/core/nodeName.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/nodeName.js b/src/core/nodeName.js
new file mode 100644
index 000000000..8a5f5f036
--- /dev/null
+++ b/src/core/nodeName.js
@@ -0,0 +1,13 @@
+define( function() {
+
+"use strict";
+
+function nodeName( elem, name ) {
+
+ return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
+
+};
+
+return nodeName;
+
+} );