arturadib / agility

Javascript MVC for the "write less, do more" programmer
http://agilityjs.com
MIT License
542 stars 70 forks source link

Zero value in model is not visible #105

Closed deflexor closed 11 years ago

deflexor commented 11 years ago

Here is jsfiddle example: http://jsfiddle.net/kPqyD/

As you can see, 1 is displayed, but when we set value to 0, then it is displayed as empty string.

robertjustjones commented 11 years ago

deflexor, here's an updated jsfiddle using the above fix: http://jsfiddle.net/kPqyD/1/

This will get merged shortly. Thanks for the catch!