Skip to content

Conversation

@syranide
Copy link
Contributor

Standard says it returns a boolean and this is a simple enough fix.

@syranide
Copy link
Contributor Author

Rebased

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will keyProp ever be undefined?

It was pointed out that this was not a very good question...

return keyProp ? !!nativeEvent[keyProp] : false reads a bit better, lets do that. (This comment stolen from @spicyj)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct as-is, but keyProp ? !!nativeEvent[keyProp] : false might be clearer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is done :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

semicolon!

@zpao zpao self-assigned this Jul 22, 2014
@cpojer
Copy link
Contributor

cpojer commented Jul 22, 2014

you missed a semicolon

zpao added a commit that referenced this pull request Jul 23, 2014
getModifierState should always return a boolean
@zpao
Copy link
Member

zpao commented Jul 23, 2014

Added the semicolon in 030071d and merged locally (13e2c38)

@zpao zpao closed this Jul 23, 2014
@zpao zpao mentioned this pull request Jul 23, 2014
10 tasks
@syranide
Copy link
Contributor Author

@zpao OK great :)

@syranide syranide deleted the modistatefalse branch July 23, 2014 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants