Fix: Always return boolean from isNullComponentID

This commit is contained in:
Shripad K
2014-10-21 00:43:04 +05:30
parent be468c2c22
commit edab4814da
+1 -1
View File
@@ -59,7 +59,7 @@ function deregisterNullComponentID(id) {
* @return {boolean} True if the component is rendered to null.
*/
function isNullComponentID(id) {
return nullComponentIdsRegistry[id];
return !!nullComponentIdsRegistry[id];
}
var ReactEmptyComponent = {