From 70e73a5a65e0ef49a95ab0080539f8884c31c5a3 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Wed, 2 Nov 2016 15:00:04 +0100 Subject: [PATCH] fix(Collection#remove): properly report the key in related event --- packages/xo-collection/src/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xo-collection/src/collection.js b/packages/xo-collection/src/collection.js index 2a8290481..60a507f1d 100644 --- a/packages/xo-collection/src/collection.js +++ b/packages/xo-collection/src/collection.js @@ -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) {