From 6a1b3cc005eba08ecaa7fd11d2de154c0ca1f11e Mon Sep 17 00:00:00 2001 From: Nate Hunzaker Date: Mon, 28 Mar 2016 21:20:06 -0400 Subject: [PATCH] Flip conditional in DisabledInputUtils to cut hasOwnProperty calls --- src/renderers/dom/client/wrappers/DisabledInputUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/dom/client/wrappers/DisabledInputUtils.js b/src/renderers/dom/client/wrappers/DisabledInputUtils.js index 06ab2dc9dc9a4..37f80283514b8 100644 --- a/src/renderers/dom/client/wrappers/DisabledInputUtils.js +++ b/src/renderers/dom/client/wrappers/DisabledInputUtils.js @@ -38,7 +38,7 @@ var DisabledInputUtils = { // Copy the props, except the mouse listeners var nativeProps = {}; for (var key in props) { - if (props.hasOwnProperty(key) && !disableableMouseListenerNames[key]) { + if (!disableableMouseListenerNames[key] && props.hasOwnProperty(key)) { nativeProps[key] = props[key]; } }