www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 29be6315460b48d2b2d613f93a4a2ea073198689
parent 7aea4fabf9952b9f4b88f226ab93477c5d9d5e95
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 22 Mar 2011 02:31:13 +0000

More debug code for selection issues


Diffstat:
Mchrome/content/zotero/xpcom/itemTreeView.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js @@ -1263,6 +1263,7 @@ Zotero.ItemTreeView.prototype.selectItem = function(id, expand, noRecurse) { // Don't change selection if UI updates are disabled (e.g., during sync) if (Zotero.suppressUIUpdates) { + Zotero.debug("Sync is running; not selecting item"); return; } @@ -1271,6 +1272,7 @@ Zotero.ItemTreeView.prototype.selectItem = function(id, expand, noRecurse) if (!this._itemRowMap) { if (this._itemGroup) { this._itemGroup.itemToSelect = { id: id, expand: expand }; + Zotero.debug("_itemRowMap not yet set; not selecting item"); return false; } @@ -1303,6 +1305,7 @@ Zotero.ItemTreeView.prototype.selectItem = function(id, expand, noRecurse) return this.selectItem(id, expand, true); } + Zotero.debug("Could not find row for item; not selecting item"); return false; }