@schneideress/dashboardframework 0.0.14 → 0.0.15

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.
@@ -534,9 +534,10 @@
534
534
  * @return {?}
535
535
  */
536
536
  function (changes) {
537
- if (this.raDashboardEventBus && this.userDashboardId && this.areaKey) {
538
- this.initiateGridsterConfig();
537
+ if (this.globalFilter && this.raDashboardEventBus && this.appConfig) {
539
538
  this.loadWidgets(this.userDashboardId, this.areaKey);
539
+ }
540
+ if (changes.raDashboardEventBus.currentValue != changes.raDashboardEventBus.previousValue) {
540
541
  this.inititateEventBusSubscritions();
541
542
  }
542
543
  };
@@ -691,12 +692,7 @@
691
692
  function (widgets) {
692
693
  if (widgets && widgets.length > 0) {
693
694
  areaContext.widgetList = _this.mapObjectListToGridsterItemList(widgets);
694
- setTimeout((/**
695
- * @return {?}
696
- */
697
- function () {
698
- areaContext.setAreaHeight();
699
- }), 2000);
695
+ areaContext.setAreaHeight();
700
696
  }
701
697
  }));
702
698
  };
@@ -2622,12 +2618,6 @@
2622
2618
  if (this.options.destroyCallback) {
2623
2619
  this.options.destroyCallback(this);
2624
2620
  }
2625
- if (this.options.api) {
2626
- this.options.api.resize = undefined;
2627
- this.options.api.optionsChanged = undefined;
2628
- this.options.api.getNextPossiblePosition = undefined;
2629
- this.options.api = undefined;
2630
- }
2631
2621
  this.emptyCell.destroy();
2632
2622
  delete this.emptyCell;
2633
2623
  this.compact.destroy();