From 84ca292262410041992d895f8752da9372ca5ce2 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 6 Jun 2011 14:53:14 -0400 Subject: [PATCH] Fix Scriptio.jsmCONTEXT value. --- common/modules/contexts.jsm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/modules/contexts.jsm b/common/modules/contexts.jsm index 8d883a06..2bd723a8 100644 --- a/common/modules/contexts.jsm +++ b/common/modules/contexts.jsm @@ -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),