File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class ComponentNgElementZoneStrategyFactory extends ComponentNgElementStr
22
22
}
23
23
24
24
/**
25
- * extends ComponentNgElementStrategy to insure callbacks run in the Angular zone
25
+ * extends ComponentNgElementStrategy to ensure callbacks run in the Angular zone
26
26
*
27
27
* @experimental
28
28
*/
@@ -35,20 +35,20 @@ export class ComponentNgElementZoneStrategy extends ComponentNgElementStrategy {
35
35
}
36
36
37
37
connect ( element : HTMLElement ) {
38
- this . insureAngularZone ( ( ) => { super . connect ( element ) ; } ) ;
38
+ this . runInZone ( ( ) => { super . connect ( element ) ; } ) ;
39
39
}
40
40
41
- disconnect ( ) { this . insureAngularZone ( super . disconnect ) ; }
41
+ disconnect ( ) {
42
+ this . runInZone ( ( ) => { super . disconnect ( ) ; } ) ;
43
+ }
42
44
43
45
getInputValue ( propName : string ) {
44
- return this . insureAngularZone ( ( ) => { return super . getInputValue ( propName ) ; } ) ;
46
+ return this . runInZone ( ( ) => { return super . getInputValue ( propName ) ; } ) ;
45
47
}
46
48
47
49
setInputValue ( propName : string , value : string ) {
48
- this . insureAngularZone ( ( ) => { super . setInputValue ( propName , value ) ; } ) ;
50
+ this . runInZone ( ( ) => { super . setInputValue ( propName , value ) ; } ) ;
49
51
}
50
52
51
- private insureAngularZone ( fn : ( ) => any ) {
52
- return NgZone . isInAngularZone ( ) ? fn ( ) : this . ngZone . run ( fn ) ;
53
- }
53
+ private runInZone ( fn : ( ) => any ) { return NgZone . isInAngularZone ( ) ? fn ( ) : this . ngZone . run ( fn ) ; }
54
54
}
You can’t perform that action at this time.
0 commit comments