Skip to content

Commit

Permalink
Flip conditional in DisabledInputUtils to cut hasOwnProperty calls
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Mar 29, 2016
1 parent c2c4c10 commit 6a1b3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/dom/client/wrappers/DisabledInputUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down

0 comments on commit 6a1b3cc

Please sign in to comment.