From 4219b714232aa2cc304ed0e38d5fb7a0ed50862a Mon Sep 17 00:00:00 2001 From: joshuawilson Date: Thu, 12 Jul 2018 16:34:32 -0400 Subject: [PATCH] fix(broadcaster): increase the refCount to 1, thus stopping the false multiple broadcaster error --- src/app/broadcaster.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/broadcaster.service.ts b/src/app/broadcaster.service.ts index a943500..7d303ae 100644 --- a/src/app/broadcaster.service.ts +++ b/src/app/broadcaster.service.ts @@ -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 @@ -41,7 +41,7 @@ interface BroadcastEvent { }) export class Broadcaster { private _eventBus: Subject; - public static refCount: number = 0; + public static refCount: number = 1; constructor() { this._eventBus = new Subject();