fix bad caching in ReactID.getID

This commit is contained in:
CommitSyncScript
2013-06-24 16:09:18 -07:00
committed by Paul O’Shannessy
parent c9ecbaccb3
commit 3266818b42
+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);