diff options
| author | Misko Hevery | 2011-03-09 13:40:47 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-03-09 13:40:47 -0800 | 
| commit | 194b2c1ea0a58c2aa86d96cb36714ab90944c736 (patch) | |
| tree | 2e3d82fda41a9a85efeb37fbe73ec050c7ed42d3 | |
| parent | f7a9ea6a418f6201638556b0925388e67a8b1b12 (diff) | |
| download | angular.js-194b2c1ea0a58c2aa86d96cb36714ab90944c736.tar.bz2 | |
Fix IE: reffering to non existent var on window, must be prefixed by window
| -rw-r--r-- | src/JSON.js | 2 | 
1 files changed, 1 insertions, 1 deletions
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);      }  | 
