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 @@ -149,10 +149,8 @@ export class NativeScriptNgZone implements NgZone {
149
149
self.shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection;
150
150
self.lastRequestAnimationFrameId = -1;
151
151
self.nativeRequestAnimationFrame = function (cb) {
152
- // const nativeDispatchToMainThread = Utils[Zone.__symbol__('dispatchToMainThread')] || Utils.dispatchToMainThread;
153
- // nativeDispatchToMainThread(cb);
154
- const nativeDispatchToMainThread = global[Zone.__symbol__('setTimeout')] || global.setTimeout;
155
- nativeDispatchToMainThread(cb, 1000);
152
+ const nativeDispatchToMainThread = Utils[Zone.__symbol__('dispatchToMainThread')] || Utils.dispatchToMainThread;
153
+ nativeDispatchToMainThread(cb);
156
154
return currentRafId++;
157
155
};
158
156
forkInnerZoneWithAngularBehavior(self);
You can’t perform that action at this time.
0 commit comments