diff --git a/src/core/ReactID.js b/src/core/ReactID.js index edc5a10e0e..9bfba32bfa 100644 --- a/src/core/ReactID.js +++ b/src/core/ReactID.js @@ -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);