Skip to content

Commit b06654e

Browse files
committed
Fix zone.js setTimeout/setInterval monkey patching.
By forcing our globals lazy loader before the patcher takes action.
1 parent 0adb766 commit b06654e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/nativescript-angular/application.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import 'reflect-metadata';
22
import './polyfills/array';
3+
import 'globals';
4+
//HACK: Unhack our global lazy loaded functions hack to make zone monkey patching work.
5+
var __dummy_setTimeout = global.setTimeout;
6+
var __dummy_clearTimeout = global.clearTimeout;
7+
var __dummy_setInterval = global.setInterval;
8+
var __dummy_clearInterval = global.clearInterval;
39
import './zone';
410
import {isPresent, Type} from 'angular2/src/facade/lang';
511
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';

0 commit comments

Comments
 (0)