hay / stapes

the Javascript MVC microframework that does just enough
http://hay.github.io/stapes
MIT License
443 stars 54 forks source link

Don't set null to oldValue if it is false or 0. #55

Closed saimn closed 9 years ago

saimn commented 10 years ago

If oldValue is false or 0, oldValue in the mutate event is set to null and we are losing the original value.

foxx commented 9 years ago

Could you give a bit more information behind this PR? Perhaps an example of code which simulates the problem in action? Also can you add a unit test for this?

hay commented 9 years ago

PR has been merged in the 0.9 branch. Thanks!