aboutsummaryrefslogtreecommitdiffstats
path: root/src/JSON.js
diff options
context:
space:
mode:
authorMisko Hevery2011-03-09 13:40:47 -0800
committerMisko Hevery2011-03-09 13:40:47 -0800
commit194b2c1ea0a58c2aa86d96cb36714ab90944c736 (patch)
tree2e3d82fda41a9a85efeb37fbe73ec050c7ed42d3 /src/JSON.js
parentf7a9ea6a418f6201638556b0925388e67a8b1b12 (diff)
downloadangular.js-194b2c1ea0a58c2aa86d96cb36714ab90944c736.tar.bz2
Fix IE: reffering to non existent var on window, must be prefixed by window
Diffstat (limited to 'src/JSON.js')
-rw-r--r--src/JSON.js2
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);
}