summaryrefslogtreecommitdiff
path: root/common/content/javascript.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-09-26 10:36:46 -0400
committerKris Maglione <maglione.k@gmail.com>2010-09-26 10:36:46 -0400
commitc8faebba0a7da5bb82f3df0a7adb580116431060 (patch)
tree7d6a0a2a01e765b4550c4f55b9f4f873a5bb44d5 /common/content/javascript.js
parenta1aa473440eda2f83feec46c225457b88cf23f1c (diff)
downloadpentadactyl-c8faebba0a7da5bb82f3df0a7adb580116431060.tar.gz
Preparation for a future commit and fix ;F in the MOW.
Diffstat (limited to 'common/content/javascript.js')
-rw-r--r--common/content/javascript.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/content/javascript.js b/common/content/javascript.js
index 81dc8bd1..2de6d80c 100644
--- a/common/content/javascript.js
+++ b/common/content/javascript.js
@@ -592,7 +592,7 @@ const JavaScript = Module("javascript", {
* A list of properties of the global object which are not
* enumerable by any standard method.
*/
- globalNames: array.uniq([
+ globalNames: Class.memoize(function () array.uniq([
"Array", "ArrayBuffer", "AttributeName", "Boolean",
"CSSFontFaceStyleDecl", "CSSGroupRuleRuleList", "CSSNameSpaceRule",
"CSSRGBColor", "CSSRect", "ComputedCSSStyleDeclaration", "Date",
@@ -610,7 +610,7 @@ const JavaScript = Module("javascript", {
"undefined", "uneval"
].concat([k.substr(6) for (k in keys(Ci)) if (/^nsIDOM/.test(k))])
.concat([k.substr(3) for (k in keys(Ci)) if (/^nsI/.test(k))])
- .filter(function (k) k in window)),
+ .filter(function (k) k in window))),
/**
* Installs argument string completers for a set of functions.