diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js index c33cf6191d..b4e17e8493 100644 --- a/chrome/content/zotero/xpcom/data/collection.js +++ b/chrome/content/zotero/xpcom/data/collection.js @@ -390,7 +390,7 @@ Zotero.Collection.prototype.addItems = Zotero.Promise.coroutine(function* (itemI }); } - yield this._loadDataType('childItems'); + yield this.loadDataType('childItems'); }); /** @@ -435,7 +435,7 @@ Zotero.Collection.prototype.removeItems = Zotero.Promise.coroutine(function* (it } }.bind(this)); - yield this._loadDataType('childItems'); + yield this.loadDataType('childItems'); }); diff --git a/chrome/content/zotero/xpcom/data/dataObject.js b/chrome/content/zotero/xpcom/data/dataObject.js index 0615098335..7875ec11d2 100644 --- a/chrome/content/zotero/xpcom/data/dataObject.js +++ b/chrome/content/zotero/xpcom/data/dataObject.js @@ -554,7 +554,7 @@ Zotero.DataObject.prototype._addLinkedObject = Zotero.Promise.coroutine(function // // Bulk data loading functions // -// These are called by Zotero.DataObjects.prototype._loadDataType(). +// These are called by Zotero.DataObjects.prototype.loadDataType(). // Zotero.DataObject.prototype.loadPrimaryData = Zotero.Promise.coroutine(function* (reload, failOnMissing) { if (this._loaded.primaryData && !reload) return; @@ -638,7 +638,7 @@ Zotero.DataObject.prototype.reload = Zotero.Promise.coroutine(function* (dataTyp || (!reloadUnchanged && !this._changed[dataType])) { continue; } - yield this._loadDataType(dataType, true); + yield this.loadDataType(dataType, true); } } }); @@ -678,7 +678,7 @@ Zotero.DataObject.prototype._requireData = function (dataType) { * @param {Boolean} reload * @param {Promise} */ -Zotero.DataObject.prototype._loadDataType = function (dataType, reload) { +Zotero.DataObject.prototype.loadDataType = function (dataType, reload) { return this._ObjectsClass._loadDataType(dataType, this.libraryID, [this.id]); } @@ -686,7 +686,7 @@ Zotero.DataObject.prototype.loadAllData = Zotero.Promise.coroutine(function* (re for (let i=0; i