-
Notifications
You must be signed in to change notification settings - Fork 310
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
When HTML attribute is empty, binders receives 0 instead of undefined #567
Comments
👍 Agreed. We all know My only issue, take the Thoughts? |
As you say it's weird, but it's still possible. The binder's code would have to consider |
I am all for this. It is a minor but important improvement. I will attach it to the 0.9 release. If anyone has any objections, please chime in. @jccazeaux Will you champion this one for us? |
Closing. |
Issue
If binder is called like that
Or
It will receive 0 instead of null (or undefined ?)
See fiddle here : https://jsfiddle.net/jccazeaux/yqnubqkz/
Cause
The cause is in function
parseType
fromparsers.coffee
. In case of no HTML attribute we go into this casebecause
I think binder should receive
undefined
when HTML attribute is empty or not specified. If you agree i'll send the PRThe text was updated successfully, but these errors were encountered: