Skip to content

Commit

Permalink
fix(core): avoid race condition between registration and activation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
CaerusKaru authored Dec 16, 2018
1 parent 6fdd328 commit 232fc6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core/media-marshaller/media-marshaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export class MediaMarshaller {

constructor(protected matchMedia: MatchMedia,
protected breakpoints: BreakPointRegistry) {
this.registerBreakpoints();
this.matchMedia.observe().subscribe(this.activate.bind(this));
this.registerBreakpoints();
}

/**
Expand Down

0 comments on commit 232fc6e

Please sign in to comment.