mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +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.
|
* 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 rootScope = this;
|
||||||
var scheduled;
|
var scheduled;
|
||||||
function update(){
|
function update(){
|
||||||
|
|
@ -456,10 +457,13 @@ angularServiceInject('$updateView', extend(function factory($browser){
|
||||||
return $browser.isMock ? update : function(){
|
return $browser.isMock ? update : function(){
|
||||||
if (!scheduled) {
|
if (!scheduled) {
|
||||||
scheduled = true;
|
scheduled = true;
|
||||||
$browser.defer(update, factory.delay);
|
$browser.defer(update, serviceUpdateViewFactory.delay);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, {delay:25}), ['$browser']);
|
}
|
||||||
|
serviceUpdateViewFactory.delay = 25;
|
||||||
|
|
||||||
|
angularServiceInject('$updateView', serviceUpdateViewFactory, ['$browser']);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @workInProgress
|
* @workInProgress
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue