no sure if this is by design or if this is bug but when I use myCollection.set("prop", value) the propChanged event is not triggered like in standard enyo components. If this is by design (collections not sending events), how can I make myCollection react to a change of one of its properity?
Note: I'm using the latest MVC struff from github.
thanks
Olivier
0 ·
Comments
Observers are heavier and used to watch specific properties; they're the backbone of the bindings system, as well as implementing the fooChanged calls.
In this case what the recomended method to trigger the "usedChanged" method in the collection?
I'd suggest that you move any observed properties into a separate controller based on enyo.Controller which is a kind derived from enyo.Component. You could store your collection in that Controller if you wanted.