@websy/websy-designs 1.11.16 → 1.11.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4327,6 +4327,9 @@ class WebsyPubSub {
|
|
|
4327
4327
|
this.subscriptions = {}
|
|
4328
4328
|
}
|
|
4329
4329
|
publish (id, method, data) {
|
|
4330
|
+
if (!this.subscriptions) {
|
|
4331
|
+
return
|
|
4332
|
+
}
|
|
4330
4333
|
if (arguments.length === 3) {
|
|
4331
4334
|
if (this.subscriptions[id] && this.subscriptions[id][method]) {
|
|
4332
4335
|
this.subscriptions[id][method](data)
|
package/dist/websy-designs.js
CHANGED
|
@@ -4111,6 +4111,9 @@ var WebsyPubSub = /*#__PURE__*/function () {
|
|
|
4111
4111
|
_createClass(WebsyPubSub, [{
|
|
4112
4112
|
key: "publish",
|
|
4113
4113
|
value: function publish(id, method, data) {
|
|
4114
|
+
if (!this.subscriptions) {
|
|
4115
|
+
return;
|
|
4116
|
+
}
|
|
4114
4117
|
if (arguments.length === 3) {
|
|
4115
4118
|
if (this.subscriptions[id] && this.subscriptions[id][method]) {
|
|
4116
4119
|
this.subscriptions[id][method](data);
|