@samitouri / QOS-React-2 / commits / 3266818b42
Fork 0

The library for web and native user interfaces.

fix bad caching in ReactID.getID

CommitSyncScript committed Jun 24, 2013 at 16:09 UTC 3266818b42fbb035ea8d9b48c8a97da5f3e9d756
1 file changed +1 -1
src/core/ReactID.js
+1 -1
@@ -65,7 +65,7 @@ function setID(node, id) {
65 * @internal
66 */
67 function getNode(id) {
68 - if (!nodeCache.hasOwnProperty(id)) {
68 + if (!nodeCache[id]) {
69 nodeCache[id] =
70 document.getElementById(id) || // TODO Quit using getElementById.
71 ReactMount.findReactRenderedDOMNodeSlow(id);