gmac / backbone.epoxy

Declarative data binding and computed models for Backbone
http://epoxyjs.org
MIT License
615 stars 89 forks source link

Setting a computed attribute triggers two change events #140

Open emileber opened 8 years ago

emileber commented 8 years ago

Related to the line 486, if I set a computed attribute, the following events are triggered:

This has the side-effect of calling every listeners of the change event for this model twice, and with the wrong params the first time.

I don't get when this would be necessary (and a good idea)? Am I missing something?

jekuno commented 8 years ago

Please also have a look at https://github.com/gmac/backbone.epoxy/issues/138 regarding this issue.