1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 20:54:10 +01:00

Cause some crashes, no doubt.

--HG--
extra : rebase_source : db7b09141e561645cd40b970c2a5e4921c2f39c0
This commit is contained in:
Kris Maglione
2012-02-22 15:05:14 -05:00
parent baf26e545c
commit 0b8980633e
4 changed files with 12 additions and 6 deletions

View File

@@ -222,7 +222,10 @@ var Contexts = Module("contexts", {
util.trapErrors("onUnload", self);
}
else {
self = args && !isArray(args) ? args : newContext.apply(null, args || [userContext]);
let params = Array.slice(args || [userContext]);
params[2] = params[2] || File(file).URI.spec;
self = args && !isArray(args) ? args : newContext.apply(null, params);
update(self, {
NAME: Const(id),