diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/nodeName.js | 13 |
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; + +} ); |