Skip to content

Commit 6a1b3cc

Browse files
committed
Flip conditional in DisabledInputUtils to cut hasOwnProperty calls
1 parent c2c4c10 commit 6a1b3cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/dom/client/wrappers/DisabledInputUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var DisabledInputUtils = {
3838
// Copy the props, except the mouse listeners
3939
var nativeProps = {};
4040
for (var key in props) {
41-
if (props.hasOwnProperty(key) && !disableableMouseListenerNames[key]) {
41+
if (!disableableMouseListenerNames[key] && props.hasOwnProperty(key)) {
4242
nativeProps[key] = props[key];
4343
}
4444
}

0 commit comments

Comments
 (0)