Fix IE: reffering to non existent var on window, must be prefixed by window

This commit is contained in:
Misko Hevery 2011-03-09 13:40:47 -08:00
parent f7a9ea6a41
commit 194b2c1ea0

View file

@ -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);
}