Temporary debugging of ItemTreeView::notify() yielding

This commit is contained in:
Dan Stillman 2015-05-10 18:33:13 -04:00
parent c83bc1b01d
commit 4d37b3d4c9

View File

@ -430,6 +430,7 @@ Zotero.ItemTreeView._haveCachedFields = false;
*/
Zotero.ItemTreeView.prototype.notify = Zotero.Promise.coroutine(function* (action, type, ids, extraData)
{
Zotero.debug("Yielding for refresh promise"); // TEMP
yield this._refreshPromise;
if (!this._treebox || !this._treebox.treeBody) {
@ -937,6 +938,7 @@ Zotero.ItemTreeView.prototype.notify = Zotero.Promise.coroutine(function* (actio
}
this.selection.selectEventsSuppressed = false;
if (madeChanges) {
Zotero.debug("Yielding for select promise"); // TEMP
yield promise;
}
});