fix bad caching in ReactID.getID

This commit is contained in:
CommitSyncScript authored and Paul O’Shannessy committed 2013-06-24 16:11:00 -07:00
1 parent c9ecbaccb3
commit 3266818b42
1 file changed
+1 -1
+1 -1
View File
@@ -65,7 +65,7 @@ function setID(node, id) {
* @internal
*/
function getNode(id) {
if (!nodeCache.hasOwnProperty(id)) {
if (!nodeCache[id]) {
nodeCache[id] =
document.getElementById(id) || // TODO Quit using getElementById.
ReactMount.findReactRenderedDOMNodeSlow(id);