Skip to content

Commit

Permalink
fix(zone): correct incorrect calls to zone
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery authored and vicb committed Feb 1, 2016
1 parent 566d3ed commit 3211938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/angular2/src/core/zone/ng_zone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
},
Expand Down

0 comments on commit 3211938

Please sign in to comment.