1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 13:07:57 +01:00

Fix some quirks in new scrolling code.

This commit is contained in:
Kris Maglione
2009-10-08 15:39:48 -04:00
parent ff8bd7467e
commit 9235500752
2 changed files with 48 additions and 35 deletions

View File

@@ -1075,10 +1075,13 @@ const liberator = (function () //{{{
*
* @param {string|Object} msg The message to print.
*/
dump: function (msg)
dump: function ()
{
if (typeof msg == "object")
msg = util.objectToString(msg);
let msg = Array.map(arguments, function (msg) {
if (typeof msg == "object")
msg = util.objectToString(msg);
return msg;
}).join(", ");
msg = String.replace(msg, /\n?$/, "\n");
window.dump(msg.replace(/^./gm, ("config" in modules && config.name.toLowerCase()) + ": $&"));
},