projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0657f3
)
Adding JSON2 to be used stand-alone. Not tested
author
Dennis Schafroth
<dennis@indexdata.com>
Mon, 28 Jun 2010 11:10:03 +0000
(13:10 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Mon, 28 Jun 2010 11:10:03 +0000
(13:10 +0200)
js/json2.js
patch
|
blob
|
history
diff --git
a/js/json2.js
b/js/json2.js
index
0b889a3
..
844fb00
100644
(file)
--- 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.