beCodeMyFriend / Cuore.js

Other
34 stars 13 forks source link

input component cant return empty string #3

Closed elmendalerenda closed 12 years ago

elmendalerenda commented 12 years ago

If an input is initialized with a value and the value is deleted, getValue method always returns the old value because an empty string is evaluated as false

https://github.com/beCodeMyFriend/Cuore.js/blob/master/src/Components/Cuore.Components.Input.js#L14