mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-13 22:39:59 +08:00
Fix IE: reffering to non existent var on window, must be prefixed by window
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user