Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(broadcaster): increase the refCount to 1, thus stopping the false…
Browse files Browse the repository at this point in the history
… multiple broadcaster error
  • Loading branch information
joshuawilson committed Jul 12, 2018
1 parent 2181510 commit 4219b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/broadcaster.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface BroadcastEvent {
*
* Any events broadcast should be documented as part of the modules API.
*
* Example
* Examples
* -------
*
* In this example we broadcast an event of type cheese and have the mouse
Expand All @@ -41,7 +41,7 @@ interface BroadcastEvent {
})
export class Broadcaster {
private _eventBus: Subject<BroadcastEvent>;
public static refCount: number = 0;
public static refCount: number = 1;

constructor() {
this._eventBus = new Subject<BroadcastEvent>();
Expand Down

0 comments on commit 4219b71

Please sign in to comment.