Do not return this.

This commit is contained in:
Julien Fontanet 2015-04-08 16:33:28 +02:00
parent ab221a465b
commit b1c73208c5

View File

@ -130,8 +130,6 @@ export default class Collection extends EventEmitter {
this._items[key] = value this._items[key] = value
this._size++ this._size++
this._touch('add', key) this._touch('add', key)
return this
} }
set (keyOrObjectWithId, valueIfKey = null) { set (keyOrObjectWithId, valueIfKey = null) {
@ -143,8 +141,6 @@ export default class Collection extends EventEmitter {
this._size++ this._size++
} }
this._touch(action, key) this._touch(action, key)
return this
} }
get (key, defaultValue) { get (key, defaultValue) {
@ -166,8 +162,6 @@ export default class Collection extends EventEmitter {
this._items[key] = value this._items[key] = value
this._touch('update', key) this._touch('update', key)
return this
} }
touch (keyOrObjectWithId) { touch (keyOrObjectWithId) {
@ -190,8 +184,6 @@ export default class Collection extends EventEmitter {
delete this._items[key] delete this._items[key]
this._size-- this._size--
this._touch('remove', key) this._touch('remove', key)
return this
} }
clear () { clear () {
@ -200,7 +192,6 @@ export default class Collection extends EventEmitter {
this._size-- this._size--
this._touch('remove', key) this._touch('remove', key)
}) })
return this
} }
get size () { get size () {