From aed466ccac8f5099a654cba4c2edee4ab96b958d Mon Sep 17 00:00:00 2001 From: Jeremy Maitin-Shepard Date: Mon, 14 Apr 2008 02:53:54 -0400 Subject: [PATCH] Set global variable JSON equal to nsIJSON instance --- components/application.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/application.js b/components/application.js index 60783a3..c5c5b2d 100644 --- a/components/application.js +++ b/components/application.js @@ -5,6 +5,9 @@ Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); function application () { Components.utils.import("resource://gre/modules/XPCOMUtils.jsm", this); + + this.JSON = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON); + this.wrappedJSObject = this; this.conkeror = this; -- 2.11.4.GIT