From 194b2c1ea0a58c2aa86d96cb36714ab90944c736 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 9 Mar 2011 13:40:47 -0800 Subject: Fix IE: reffering to non existent var on window, must be prefixed by window --- src/JSON.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/JSON.js b/src/JSON.js index 9a2b34e5..52d5a763 100644 --- a/src/JSON.js +++ b/src/JSON.js @@ -38,7 +38,7 @@ function fromJson(json, useNative) { var obj, p, expression; try { - if (useNative && JSON && JSON.parse) { + if (useNative && window.JSON && window.JSON.parse) { obj = JSON.parse(json); return transformDates(obj); } -- cgit v1.2.3