@samitouri / QOS-React / commits / ec2c542f28

Flip conditional in DisabledInputUtils to cut hasOwnProperty calls

Nate Hunzaker committed Mar 28, 2016 at 21:20 UTC ec2c542f282a1294e0fe23f39cd00e120a0c1594
1 file changed +1 -1
src/renderers/dom/client/wrappers/DisabledInputUtils.js
+1 -1
@@ -38,7 +38,7 @@ var DisabledInputUtils = {
38 // Copy the props, except the mouse listeners
39 var nativeProps = {};
40 for (var key in props) {
41 - if (props.hasOwnProperty(key) && !disableableMouseListenerNames[key]) {
41 + if (!disableableMouseListenerNames[key] && props.hasOwnProperty(key)) {
42 nativeProps[key] = props[key];
43 }
44 }