This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -786,12 +786,13 @@ function $RootScopeProvider() {
786
786
current = target ;
787
787
788
788
// It's safe for asyncQueuePosition to be a local variable here because this loop can't
789
- // be reentered recursively. Calling $digest from a function passed to $applyAsync would
789
+ // be reentered recursively. Calling $digest from a function passed to $evalAsync would
790
790
// lead to a '$digest already in progress' error.
791
791
for ( var asyncQueuePosition = 0 ; asyncQueuePosition < asyncQueue . length ; asyncQueuePosition ++ ) {
792
792
try {
793
793
asyncTask = asyncQueue [ asyncQueuePosition ] ;
794
- asyncTask . scope . $eval ( asyncTask . expression , asyncTask . locals ) ;
794
+ fn = asyncTask . fn ;
795
+ fn ( asyncTask . scope , asyncTask . locals ) ;
795
796
} catch ( e ) {
796
797
$exceptionHandler ( e ) ;
797
798
}
@@ -1025,7 +1026,7 @@ function $RootScopeProvider() {
1025
1026
} ) ;
1026
1027
}
1027
1028
1028
- asyncQueue . push ( { scope : this , expression : $parse ( expr ) , locals : locals } ) ;
1029
+ asyncQueue . push ( { scope : this , fn : $parse ( expr ) , locals : locals } ) ;
1029
1030
} ,
1030
1031
1031
1032
$$postDigest : function ( fn ) {
You can’t perform that action at this time.
0 commit comments