File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -153,10 +153,8 @@ export class NativeScriptNgZone implements NgZone {
153
153
self . shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection ;
154
154
self . lastRequestAnimationFrameId = - 1 ;
155
155
self . nativeRequestAnimationFrame = function ( cb ) {
156
- // const nativeDispatchToMainThread = Utils[Zone.__symbol__('dispatchToMainThread')] || Utils.dispatchToMainThread;
157
- // nativeDispatchToMainThread(cb);
158
- const nativeDispatchToMainThread = global [ Zone . __symbol__ ( 'setTimeout' ) ] || global . setTimeout ;
159
- nativeDispatchToMainThread ( cb , 1000 ) ;
156
+ const nativeDispatchToMainThread = Utils [ Zone . __symbol__ ( 'dispatchToMainThread' ) ] || Utils . dispatchToMainThread ;
157
+ nativeDispatchToMainThread ( cb ) ;
160
158
return currentRafId ++ ;
161
159
} ;
162
160
forkInnerZoneWithAngularBehavior ( self ) ;
You can’t perform that action at this time.
0 commit comments