From fd2125ee94f5bf30f7b5488cededbb0d1170574f Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Wed, 17 Jul 2013 18:32:23 -0400 Subject: [PATCH] Use getAttribute instead of getAttributeNode in ReactID.rawGetID. Also known as internalGetID, internally. --- src/core/ReactID.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/core/ReactID.js b/src/core/ReactID.js index f658241146..d3a6cfad2b 100644 --- a/src/core/ReactID.js +++ b/src/core/ReactID.js @@ -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) || ''; } /**