You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have one store, and two collections defined on that store, each viewing a different subset of information, and I'm tracking both collections:
// Only the Driver's comments
this.driverCollection=this.commentStore.filter({
vehicleid:this.vehicleid,
inspectitemid:this.inspectitemid,
commenter:'Driver'
}).sort([{property:'commenttime',descending:true}]).track();
// Only the Mechanic's comments
this.mechanicCollection=this.commentStore.filter({
vehicleid:this.vehicleid,
inspectitemid:this.inspectitemid,
commenter:'Mechanic'
}).sort([{property:'commenttime',descending:true}]).track();
If I add a listener to each collection and add a record, both listeners are notified.
this.mechanicCollection.on('delete,add,update',function(evt){
// I will get events when the commenter is 'Driver'
});
The text was updated successfully, but these errors were encountered:
We landed a fix in the master branch. the Store#on method now supports a third, optional parameter. Take a look at the comments in #222 to see the limitations of registering an "update" event listener.
Let's say I have one store, and two collections defined on that store, each viewing a different subset of information, and I'm tracking both collections:
If I add a listener to each collection and add a record, both listeners are notified.
The text was updated successfully, but these errors were encountered: