asciidisco / Backbone.Mutators

Backbone plugin to override getters and setters with logic
http://asciidisco.github.com/Backbone.Mutators
228 stars 30 forks source link

Add mutator dependancies and change events #33

Closed chiplay closed 9 years ago

chiplay commented 10 years ago

This was a test to see if its possible to fire change events for Mutators, when underlying attributes change. This is helpful for us using library like backbone.stickit for binding updates. Not sure about the performance impact or caching technique, there could certainly be a better way. Love to hear feedback!

chiplay commented 9 years ago

@asciidisco thanks for merging! I was actually expecting a bit of discussion and potentially building out some test cases and updating the src files before it made the cut, but I can still work on that now if you feel like this was generally a good direction.

I also noticed that I missed this commit (i must have been working from an older version locally), so before creating a new version / tag - we should get those node fixes / changes back in place.

asciidisco commented 9 years ago

@chiplay I added you as a contributor, please feel free to make any changes you want, as I do not have the time to do so.

Thank you for helping out.