1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 10:02:27 +01:00

Fix focus bug. Closes issue #212.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-27 11:10:50 -05:00
parent a7b8cac7de
commit e93f7455f2
5 changed files with 7 additions and 13 deletions

View File

@@ -486,7 +486,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
*/
dumpStack: function dumpStack(msg, frames) {
let stack = util.stackLines(Error().stack);
stack = stack.slice(2, 2 + (frames || stack.length)).join("\n");
stack = stack.slice(2, 2 + (frames || stack.length)).join("\n").replace(/^/gm, " ");
util.dump((arguments.length == 0 ? "Stack" : msg) + "\n" + stack + "\n");
},