From bbeb590aaff56ff3364b852f6149b220581b58a1 Mon Sep 17 00:00:00 2001 From: Idan Amit Date: Thu, 3 Jan 2019 18:18:37 +0200 Subject: Fixed minor issues in sdc-pubusb Change-Id: I9d667fbb1740376e686824335f2dbae242f8d00c Issue-ID: SDC-2032 Signed-off-by: Idan Amit --- lib/plugin-pubsub.ts | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 lib/plugin-pubsub.ts (limited to 'lib/plugin-pubsub.ts') diff --git a/lib/plugin-pubsub.ts b/lib/plugin-pubsub.ts deleted file mode 100644 index ec4afb2..0000000 --- a/lib/plugin-pubsub.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { BasePubSub } from './base-pubsub'; - -declare const window: Window; - -export class PluginPubSub extends BasePubSub { - - constructor(pluginId: string, parentUrl: string, eventsToWait?: string[]) { - super(pluginId); - this.register('sdc-hub', window.parent, parentUrl); - this.subscribe(eventsToWait); - } - - public subscribe(eventsToWait?: string[]) { - const registerData = { - pluginId: this.clientId, - eventsToWait: eventsToWait || [] - }; - - this.notify('PLUGIN_REGISTER', registerData); - } - - public unsubscribe() { - const unregisterData = { - pluginId: this.clientId - }; - - this.notify('PLUGIN_UNREGISTER', unregisterData); - } -} -- cgit 1.2.3-korg