Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better default check for canBubble #2748

Merged
merged 2 commits into from
Sep 9, 2016
Merged

Conversation

mathiasrw
Copy link
Contributor

@mathiasrw mathiasrw commented Sep 9, 2016

I found that your code was comparing the result of typeof with a variable named undefined.

As typeof returns a string it would compare to a string with the content 'undefined'

Rewrote the line to a more simple one.

Using Google bigquery I found that your code was comparing the result of `typeof` with a variable named `undefined`.

As typeof returns a string it would compare to a string with the content `'undefined'`

Rewrote the line to a more simple one.
@lukeis
Copy link
Member

lukeis commented Sep 9, 2016

Thanks for catching this! Although the original intention is to check for undefined and then default to true, with your change if one passes in false it will change the value to true. Mind adjusting it accordingly? (Just changing undefined to "undefined" would do it)

@mathiasrw
Copy link
Contributor Author

Aww - you are right !

Will change it...

@lukeis lukeis merged commit eb6c8b2 into SeleniumHQ:master Sep 9, 2016
@mathiasrw mathiasrw deleted the patch-1 branch September 9, 2016 18:59
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.

2 participants