fix(Collection#remove): properly report the key in related event

This commit is contained in:
Julien Fontanet 2016-11-02 15:00:04 +01:00
parent 61c61adea1
commit 70e73a5a65

View File

@ -319,7 +319,7 @@ export default class Collection extends EventEmitter {
_remove (key) {
delete this._items[key]
this._size--
this._touch(ACTION_REMOVE)
this._touch(ACTION_REMOVE, key)
}
_resolveItem (keyOrObjectWithId, valueIfKey = undefined) {