Skip to content

Commit

Permalink
switch ordering of logical and (#11462)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjlim authored and gaearon committed Nov 5, 2017
1 parent 92b7b17 commit e2e7fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-dom/src/shared/DOMProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ export function shouldSetAttribute(name, value) {
return false;
}
if (
name.length > 2 &&
(name[0] === 'o' || name[0] === 'O') &&
(name[1] === 'n' || name[1] === 'N') &&
name.length > 2
(name[1] === 'n' || name[1] === 'N')
) {
return false;
}
Expand Down

0 comments on commit e2e7fcc

Please sign in to comment.