mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +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;
|
||||
|
||||
try {
|
||||
if (useNative && JSON && JSON.parse) {
|
||||
if (useNative && window.JSON && window.JSON.parse) {
|
||||
obj = JSON.parse(json);
|
||||
return transformDates(obj);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue