@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.
@@ -3883,6 +3883,9 @@ class WebsyPubSub {
3883
3883
  this.subscriptions = {}
3884
3884
  }
3885
3885
  publish (id, method, data) {
3886
+ if (!this.subscriptions) {
3887
+ return
3888
+ }
3886
3889
  if (arguments.length === 3) {
3887
3890
  if (this.subscriptions[id] && this.subscriptions[id][method]) {
3888
3891
  this.subscriptions[id][method](data)
@@ -3689,6 +3689,9 @@ var WebsyPubSub = /*#__PURE__*/function () {
3689
3689
  _createClass(WebsyPubSub, [{
3690
3690
  key: "publish",
3691
3691
  value: function publish(id, method, data) {
3692
+ if (!this.subscriptions) {
3693
+ return;
3694
+ }
3692
3695
  if (arguments.length === 3) {
3693
3696
  if (this.subscriptions[id] && this.subscriptions[id][method]) {
3694
3697
  this.subscriptions[id][method](data);