hoodie.store.on('add:task', function (event, changedObject) {
// Update the view with the changedObject
});
should be
hoodie.store.on('add:task', function (newObject) {
// Update the view with the changedObject
});
Only the change event passes the eventName as first parameter. I'd also suggest to change the event parameter in the other examples to eventName, to not confuse it with the typical event parameter from jQuery, which is actually an event object.
should be
Only the
change
event passes the eventName as first parameter. I'd also suggest to change theevent
parameter in the other examples toeventName
, to not confuse it with the typicalevent
parameter from jQuery, which is actually an event object.