aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/plugin-pubsub.ts
diff options
context:
space:
mode:
authorIdan Amit <idan.amit@intl.att.com>2019-01-08 16:41:23 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-01-16 09:13:38 +0000
commitfe65ddd4b7e68a683d4e027f136ac85c8d0b29f4 (patch)
tree2cce37a407c0d5b48b375a5a60ef15ab24b199fb /catalog-ui/src/app/models/plugin-pubsub.ts
parent82be4fb725eef356ccf45a191990973753176ec7 (diff)
minor fixes to sdc-pubsub
Aligned sdc code to the fixes that were made in the sdc-pubsub library Change-Id: I54e48e55915dadd3fdb53c0290e013708161aa46 Issue-ID: SDC-2032 Signed-off-by: Idan Amit <idan.amit@intl.att.com>
Diffstat (limited to 'catalog-ui/src/app/models/plugin-pubsub.ts')
-rw-r--r--catalog-ui/src/app/models/plugin-pubsub.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/catalog-ui/src/app/models/plugin-pubsub.ts b/catalog-ui/src/app/models/plugin-pubsub.ts
deleted file mode 100644
index 3a34de99cc..0000000000
--- a/catalog-ui/src/app/models/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?: Array<string>) {
- super(pluginId);
- this.register('sdc-hub', window.parent, parentUrl);
- this.subscribe(eventsToWait);
- }
-
- public subscribe(eventsToWait?: Array<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);
- }
-}