diff --git a/chrome/chromeFiles/content/scholar/xpcom/notifier.js b/chrome/chromeFiles/content/scholar/xpcom/notifier.js index d250ac7b6..92cc45dc6 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/notifier.js +++ b/chrome/chromeFiles/content/scholar/xpcom/notifier.js @@ -74,7 +74,7 @@ Scholar.Notifier = new function(){ } function _unregister(type, hash){ - Scholar.debug("Unregistering ' + type + ' in notifier with hash '" + hash + "'", 4); + Scholar.debug("Unregistering " + type + " in notifier with hash '" + hash + "'", 4); delete _observers[type][hash]; } } diff --git a/chrome/chromeFiles/content/scholar/xpcom/scholar.js b/chrome/chromeFiles/content/scholar/xpcom/scholar.js index eadd95afc..25009ccb9 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/scholar.js +++ b/chrome/chromeFiles/content/scholar/xpcom/scholar.js @@ -146,6 +146,11 @@ var Scholar = new function(){ * values and/or an arbitrary number of individual values */ function flattenArguments(args){ + // Put passed scalar values into an array + if (typeof args!='object'){ + args = [args]; + } + var returns = new Array(); for (var i=0; i