-
Notifications
You must be signed in to change notification settings - Fork 95
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
i-bem: setMod/hasMod convert non-boolean values to string #893
Conversation
commit title doesn't correspond its content |
I have two points about that:
|
@narqo ping |
Agree with it. But at the same time I'd prefer to have a warnings (or an error) about such things. Currently it not that obvious, how that code works.
I think I haven't understood your point. Which other types in addition to String and Number do you mean? BTW, we've fixed jsdoc of these methods as well. |
I mean we don't need to explicitly consider |
Propose |
No, |
@zxqfox Do you ever sleep? ) |
@dfilatov Should I? ;-) |
🆙 |
9c77691
to
7790b95
Compare
@dfilatov pong |
typeModVal === 'boolean' || | ||
typeModVal === 'undefined' || (modVal = modVal.toString()); | ||
|
||
var res = this.getMod(elem, modName) === modVal; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double space before modVal
lgtm |
don't forget about v3, will you? |
i-bem: setMod/hasMod convert non-boolean values to string
closes #890
/cc @dfilatov