@samitouri / QOS-React / commits / d1ee199492

Fix usage of Boolean constructor

Andrew Clark committed Mar 1, 2017 at 12:30 UTC d1ee199492712dd0963eba6577fee98f34ef61bd
2 files changed +2 -2
src/renderers/dom/fiber/ReactDOMFiber.js
+1 -1
@@ -288,7 +288,7 @@ var DOMRenderer = ReactFiberReconciler({
288 },
289
290 shouldDeprioritizeSubtree(type : string, props : Props) : boolean {
291 - return Boolean(props.hidden);
291 + return !!props.hidden;
292 },
293
294 createTextInstance(
src/renderers/noop/ReactNoop.js
+1 -1
@@ -102,7 +102,7 @@ var NoopRenderer = ReactFiberReconciler({
102 resetTextContent(instance : Instance) : void {},
103
104 shouldDeprioritizeSubtree(type : string, props : Props) : boolean {
105 - return Boolean(props.hidden);
105 + return !!props.hidden;
106 },
107
108 createTextInstance(