fix(zone): correct incorrect calls to zone

This commit is contained in:
Misko Hevery 2015-12-22 20:54:19 -08:00 committed by Victor Berchet
parent 566d3ede04
commit 321193889f
1 changed files with 2 additions and 2 deletions

View File

@ -422,14 +422,14 @@ export class NgZone {
fn();
ListWrapper.remove(ngZone._pendingTimeouts, id);
};
id = parentSetTimeout(cb, delay, args);
id = parentSetTimeout.call(this, cb, delay, args);
ngZone._pendingTimeouts.push(id);
return id;
};
},
'$clearTimeout': function(parentClearTimeout) {
return function(id: number) {
parentClearTimeout(id);
parentClearTimeout.call(this, id);
ListWrapper.remove(ngZone._pendingTimeouts, id);
};
},