mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 23:40:23 +00:00
fix for IE free function weirdness
This commit is contained in:
parent
47c454a315
commit
4c71824a69
1 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue