Minor fixes.

This commit is contained in:
Julien Fontanet 2015-04-27 15:09:07 +02:00
parent 22caa0ee66
commit d45348c167

View File

@ -48,7 +48,7 @@ export class InvalidKey extends BaseError {
}
export class NoSuchIndex extends BaseError {
constructor (key) {
constructor (name) {
super('there is no index with the name ' + name)
}
}
@ -205,7 +205,7 @@ export default class Collection extends EventEmitter {
delete indexes[name]
delete this._indexedItems[name]
index._detachCollection()
index._detachCollection(this)
}
// -----------------------------------------------------------------