+ Applied Ehsan's sessionstore patch

+ Various related fixes
+ Added Utils.log2, which logs directly to the window
This commit is contained in:
Ian Gilman 2010-05-21 15:44:15 -07:00
parent 5cc48c0893
commit ac6aa9b303

View File

@ -471,6 +471,16 @@ var Utils = {
consoleService.logStringMessage(text);
},
log2: function() { // pass as many arguments as you want, it'll print them all
var text = this.expandArgumentsForLog(arguments);
var html =
'<div style="position: relative; z-index: -9999">'
+ text
+ '</div>';
$(html).prependTo('body');
},
error: function() { // pass as many arguments as you want, it'll print them all
var text = this.expandArgumentsForLog(arguments);
Cu.reportError('tabcandy error: ' + text);