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

Fix Scriptio.jsmCONTEXT value.

This commit is contained in:
Kris Maglione
2011-06-06 14:53:14 -04:00
parent b5d6b996a0
commit 84ca292262

View File

@@ -190,7 +190,8 @@ var Contexts = Module("contexts", {
let name = isPlugin ? file.getRelativeDescriptor(isPlugin).replace(File.PATH_SEP, "-")
: file.leafName;
self = update(args && !isArray(args) ? args : newContext.apply(null, args || [userContext]), {
self = args && !isArray(args) ? args : newContext.apply(null, args || [userContext]);
update(self, {
NAME: Const(name.replace(/\.[^.]*$/, "").replace(/-([a-z])/g, function (m, n1) n1.toUpperCase())),
PATH: Const(file.path),