mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-26 01:24:43 +00:00
Fix IE: reffering to non existent var on window, must be prefixed by window
This commit is contained in:
parent
f7a9ea6a41
commit
194b2c1ea0
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ function fromJson(json, useNative) {
|
||||||
var obj, p, expression;
|
var obj, p, expression;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (useNative && JSON && JSON.parse) {
|
if (useNative && window.JSON && window.JSON.parse) {
|
||||||
obj = JSON.parse(json);
|
obj = JSON.parse(json);
|
||||||
return transformDates(obj);
|
return transformDates(obj);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue