Fix error on object delete
This commit is contained in:
parent
4782c725e7
commit
db99aae239
|
@ -117,7 +117,7 @@ Zotero.DataObjects = function (object, objectPlural, id, table) {
|
||||||
this.unload = function () {
|
this.unload = function () {
|
||||||
var ids = Zotero.flattenArguments(arguments);
|
var ids = Zotero.flattenArguments(arguments);
|
||||||
for (var i=0; i<ids.length; i++) {
|
for (var i=0; i<ids.length; i++) {
|
||||||
delete _objectCache[ids[i]];
|
delete this._objectCache[ids[i]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user