From 281d73071e7e8adc865e2c50f884faaca08d578f Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Mon, 28 Jun 2010 13:10:03 +0200 Subject: [PATCH] Adding JSON2 to be used stand-alone. Not tested --- js/json2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/json2.js b/js/json2.js index 0b889a3..844fb00 100644 --- a/js/json2.js +++ b/js/json2.js @@ -156,6 +156,8 @@ alert('IMPORTANT: Remove this line from json2.js before deployment.'); test, toJSON, toString, valueOf */ +// Create a stand-alone object (not sure it will work +this.JSON2 = {}; // Create a JSON object only if one does not already exist. We create the // methods in a closure to avoid creating global variables. -- 1.7.10.4