bruce-cesium 0.0.6 → 0.0.8

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.
@@ -1752,6 +1752,9 @@ var VisualsRegister;
1752
1752
  });
1753
1753
  Object.defineProperty(Register.prototype, "OnUpdate", {
1754
1754
  get: function () {
1755
+ if (!this.onUpdate) {
1756
+ this.onUpdate = new BruceEvent();
1757
+ }
1755
1758
  return this.onUpdate;
1756
1759
  },
1757
1760
  enumerable: false,
@@ -2734,6 +2737,9 @@ var MenuItemManager;
2734
2737
  });
2735
2738
  Object.defineProperty(Manager.prototype, "OnUpdate", {
2736
2739
  get: function () {
2740
+ if (!this.onUpdate) {
2741
+ this.onUpdate = new BruceEvent();
2742
+ }
2737
2743
  return this.onUpdate;
2738
2744
  },
2739
2745
  enumerable: false,
@@ -2792,11 +2798,9 @@ var MenuItemManager;
2792
2798
  break;
2793
2799
  // Any "none" type can be ignored. These are just containers for other items.
2794
2800
  case MenuItem.EType.None:
2795
- case "":
2796
- case null:
2797
2801
  break;
2798
2802
  default:
2799
- throw ("Menu item type is not implemented.");
2803
+ console.error("Menu item type is not implemented.", item.Type);
2800
2804
  }
2801
2805
  (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger({ isEnabling: true, itemId: rItem.id });
2802
2806
  if (!rItem.renderManager) return [3 /*break*/, 2];