Open vans163 opened 9 years ago
This code for example:
overview = Epoxy.Model.extend({ defaults: { accounts: new accCollection(), }, computeds: { deps: ["accounts"], totalAccounts: function() { return this.get("accounts").length; }, }, });
Does not trigger computeds to recompute when a member is added to the collection via .add.
If accounts: [], everything works great, appending an element triggers computeds to recompute.
This code for example:
Does not trigger computeds to recompute when a member is added to the collection via .add.
If accounts: [], everything works great, appending an element triggers computeds to recompute.