diff --git a/chrome/chromeFiles/content/scholar/xpcom/notifier.js b/chrome/chromeFiles/content/scholar/xpcom/notifier.js index e7b91aff95..10f0d9dc38 100644 --- 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); } }