Fix usage of Boolean constructor

This commit is contained in:
Andrew Clark
2017-03-01 12:30:32 -08:00
parent 7a878d27e3
commit d1ee199492
2 changed files with 2 additions and 2 deletions
+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(