aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMisko Hevery2011-01-10 10:22:24 -0800
committerMisko Hevery2011-01-10 10:22:24 -0800
commit4c71824a69cc5edb7c466f06bd48da5f76c5fda4 (patch)
tree5a17f7f27405c9d4fbf40788b5cc1e71a4708b2c /src
parent47c454a315b6c0260c8f65e70ae9b30f924650df (diff)
downloadangular.js-4c71824a69cc5edb7c466f06bd48da5f76c5fda4.tar.bz2
fix for IE free function weirdness
Diffstat (limited to 'src')
-rw-r--r--src/services.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/services.js b/src/services.js
index 1a2aada6..42d0622f 100644
--- a/src/services.js
+++ b/src/services.js
@@ -446,7 +446,8 @@ angularServiceInject('$exceptionHandler', function($log){
* In unit-test mode the update is instantaneous and synchronous to simplify writing tests.
*
*/
-angularServiceInject('$updateView', extend(function factory($browser){
+
+function serviceUpdateViewFactory($browser){
var rootScope = this;
var scheduled;
function update(){
@@ -456,10 +457,13 @@ angularServiceInject('$updateView', extend(function factory($browser){
return $browser.isMock ? update : function(){
if (!scheduled) {
scheduled = true;
- $browser.defer(update, factory.delay);
+ $browser.defer(update, serviceUpdateViewFactory.delay);
}
};
-}, {delay:25}), ['$browser']);
+}
+serviceUpdateViewFactory.delay = 25;
+
+angularServiceInject('$updateView', serviceUpdateViewFactory, ['$browser']);
/**
* @workInProgress