Use getAttribute instead of getAttributeNode in ReactID.rawGetID.

Also known as internalGetID, internally.
This commit is contained in:
Ben Newman
2013-07-17 21:14:04 -04:00
parent 52e622f1db
commit fd2125ee94
+1 -7
View File
@@ -57,13 +57,7 @@ function getID(node) {
}
function internalGetID(node) {
if (node && node.getAttributeNode) {
var attributeNode = node.getAttributeNode(ATTR_NAME);
if (attributeNode) {
return attributeNode.value || '';
}
}
return '';
return node && node.getAttribute && node.getAttribute(ATTR_NAME) || '';
}
/**