Fix usage of Boolean constructor

This commit is contained in:
Andrew Clark committed 2017-03-01 12:30:32 -08:00
1 parent 7a878d27e3
commit d1ee199492
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -288,7 +288,7 @@ var DOMRenderer = ReactFiberReconciler({
},
shouldDeprioritizeSubtree(type : string, props : Props) : boolean {
return Boolean(props.hidden);
return !!props.hidden;
},
createTextInstance(
+1 -1
View File
@@ -102,7 +102,7 @@ var NoopRenderer = ReactFiberReconciler({
resetTextContent(instance : Instance) : void {},
shouldDeprioritizeSubtree(type : string, props : Props) : boolean {
return Boolean(props.hidden);
return !!props.hidden;
},
createTextInstance(