commit daa1a6e8a55811459034b5d0c4ffa0abfbad372e
parent a7d5685da79afd4e80f46edfc8acacf8cdd8ef6f
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 2 Jun 2006 07:04:13 +0000
Fix debug message in Notifier to properly handle int or array for ids
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/xpcom/notifier.js b/chrome/chromeFiles/content/scholar/xpcom/notifier.js
@@ -44,8 +44,10 @@ Scholar.Notifier = new function(){
}
for (i in _observers[treeType]){
- Scholar.debug("Calling _observers['" + treeType + "']['" + i + "'].notify('" + event
- + "', " + type + "', " + ids.join() + ")", 4);
+ Scholar.debug("Calling _observers['" + treeType + "']"
+ + "['" + i + "'].notify('" + event + "', " + type + "', "
+ + (typeof ids=='Object' ? ids.join() : ids)
+ + ")", 4);
_observers[treeType][i].notify(event, type, ids);
}
}