X Tutup
Skip to content

Commit 3211938

Browse files
mheveryvicb
authored andcommitted
fix(zone): correct incorrect calls to zone
1 parent 566d3ed commit 3211938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/angular2/src/core/zone/ng_zone.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,14 @@ export class NgZone {
422422
fn();
423423
ListWrapper.remove(ngZone._pendingTimeouts, id);
424424
};
425-
id = parentSetTimeout(cb, delay, args);
425+
id = parentSetTimeout.call(this, cb, delay, args);
426426
ngZone._pendingTimeouts.push(id);
427427
return id;
428428
};
429429
},
430430
'$clearTimeout': function(parentClearTimeout) {
431431
return function(id: number) {
432-
parentClearTimeout(id);
432+
parentClearTimeout.call(this, id);
433433
ListWrapper.remove(ngZone._pendingTimeouts, id);
434434
};
435435
},

0 commit comments

Comments
 (0)
X Tutup