1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-01 06:25:45 +01:00

Backed out changeset 7b2d94f436ad

This commit is contained in:
Kris Maglione
2009-10-08 17:19:53 -04:00
parent 271e4fdfc1
commit 81c72d560e
2 changed files with 32 additions and 35 deletions

View File

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