Skip to content

Commit

Permalink
fix(platform): subscribeWithPriority trigger change detection (#18962)
Browse files Browse the repository at this point in the history
fixes #18959
  • Loading branch information
manucorporat committed Aug 6, 2019
1 parent 6bbdb80 commit 3a22105
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions angular/src/providers/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export class Platform {
zone.run(() => {
this.win = doc.defaultView;
this.backButton.subscribeWithPriority = function(priority, callback) {
return this.subscribe(ev => {
ev.register(priority, callback);
});
return this.subscribe(ev => (
ev.register(priority, () => zone.run(callback))
));
};

proxyEvent(this.pause, doc, 'pause');
Expand Down

0 comments on commit 3a22105

Please sign in to comment.