Skip to content

Commit 194b2c1

Browse files
committed
Fix IE: reffering to non existent var on window, must be prefixed by window
1 parent f7a9ea6 commit 194b2c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/JSON.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function fromJson(json, useNative) {
3838
var obj, p, expression;
3939

4040
try {
41-
if (useNative && JSON && JSON.parse) {
41+
if (useNative && window.JSON && window.JSON.parse) {
4242
obj = JSON.parse(json);
4343
return transformDates(obj);
4444
}

0 commit comments

Comments
 (0)