aboutsummaryrefslogtreecommitdiffstats
path: root/src/AngularPublic.js
diff options
context:
space:
mode:
authorIgor Minar2011-12-07 07:53:57 -0800
committerIgor Minar2011-12-07 07:54:09 -0800
commitfd38655e6c8e58e7c7325b2a5937b26174ebdefa (patch)
tree03921a8a9dc94fe3f5c2752ea84e05682da3b89f /src/AngularPublic.js
parentb9001e914740ea0e3bba357a33ddaf13610c874f (diff)
downloadangular.js-fd38655e6c8e58e7c7325b2a5937b26174ebdefa.tar.bz2
fix(): use angular.callbacks namespace for jsonp callbacks
Previously we used to put callbacks on the window object, but that causes problems on IE8 where it is not possible to delete properties from the window object
Diffstat (limited to 'src/AngularPublic.js')
-rw-r--r--src/AngularPublic.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/AngularPublic.js b/src/AngularPublic.js
index e5c70a8b..7664ed8c 100644
--- a/src/AngularPublic.js
+++ b/src/AngularPublic.js
@@ -47,7 +47,8 @@ function publishExternalAPI(angular){
'version': version,
'isDate': isDate,
'lowercase': lowercase,
- 'uppercase': uppercase
+ 'uppercase': uppercase,
+ 'callbacks': {counter: 0}
});
angularModule.ng = ngModule;