In this global change event, is there a way I can detect which attribute was changed?
myModel.on('change', function(model) {
// Which attribute changed?
});
I tried the following:
- Using
myModel.previousAttributes()
but it always returned latest values... I guess it only updates after a server interaction. - Iterating trough attributes and using
myModel.hasChanged(attr)
but it always returned false.
It's there a way to accomplish this?