mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-08 03:00:26 -04:00
fixing lingering idAttribute spot -- thanks, jdknezek
This commit is contained in:
@@ -607,7 +607,7 @@
|
||||
this._remove(model, options);
|
||||
}
|
||||
if (ev === 'change:id') {
|
||||
delete this._byId[model.previous('id')];
|
||||
delete this._byId[model.previous(model.idAttribute)];
|
||||
this._byId[model.id] = model;
|
||||
}
|
||||
this.trigger.apply(this, arguments);
|
||||
|
||||
Reference in New Issue
Block a user