@samitouri / QOS-React-2 / commits / fd2125ee94
Fork 0

The library for web and native user interfaces.

Use getAttribute instead of getAttributeNode in ReactID.rawGetID.

Also known as internalGetID, internally.

Ben Newman committed Jul 17, 2013 at 18:32 UTC fd2125ee94f5bf30f7b5488cededbb0d1170574f
1 file changed +1 -7
src/core/ReactID.js
+1 -7
@@ -57,13 +57,7 @@ function getID(node) {
57 }
58
59 function internalGetID(node) {
60 - if (node && node.getAttributeNode) {
61 - var attributeNode = node.getAttributeNode(ATTR_NAME);
62 - if (attributeNode) {
63 - return attributeNode.value || '';
64 - }
65 - }
66 - return '';
60 + return node && node.getAttribute && node.getAttribute(ATTR_NAME) || '';
61 }
62
63 /**