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

Fix some quirks in new scrolling code.

--HG--
extra : rebase_source : 85c06e97ddd00cde296d595a99052428dacc15ca
This commit is contained in:
Kris Maglione
2009-10-08 15:39:48 -04:00
parent 32328e0419
commit 271e4fdfc1
2 changed files with 35 additions and 32 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()) + ": $&"));
},