Fix: Always return boolean from isNullComponentID
Shripad K committed
Oct 21, 2014 at 00:43 UTC
edab4814dad8828044359ca97dacd7f15282beb3
1 file changed
+1
-1
src/core/ReactEmptyComponent.js
+1
-1
@@ -59,7 +59,7 @@ function deregisterNullComponentID(id) {
59
* @return {boolean} True if the component is rendered to null.
60
*/
61
function isNullComponentID(id) {
62
- return nullComponentIdsRegistry[id];
62
+ return !!nullComponentIdsRegistry[id];
63
}
64
65
var ReactEmptyComponent = {