Skip to content

Commit 3b11964

Browse files
author
minodisk
committed
make 'JSON' scope local
1 parent 7568b4d commit 3b11964

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

deps/json2.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@
159159
// Create a JSON object only if one does not already exist. We create the
160160
// methods in a closure to avoid creating global variables.
161161

162-
if (!this.JSON) {
163-
this.JSON = {};
164-
}
162+
var JSON = {};
165163

166164
(function () {
167165
"use strict";

0 commit comments

Comments
 (0)