@opengeoweb/metronome 14.0.1 → 14.2.1

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.
Files changed (2) hide show
  1. package/index.esm.js +3 -2
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -89,14 +89,15 @@ var Metronome = /*#__PURE__*/function () {
89
89
  var distanceToDelay = _this.tickId - nearestDelay;
90
90
  if (Math.abs(distanceToDelay) < 0.5 || distanceToDelay === -0.5) {
91
91
  if (!timer.isPaused) {
92
- timer.timerFunc && timer.timerFunc(timer.timerId, _this.tickId);
92
+ timer.timerFunc == null || timer.timerFunc(timer.timerId, _this.tickId);
93
93
  triggeredTimerIds.push(timer.timerId);
94
94
  }
95
95
  }
96
96
  });
97
97
  // Trigger the handleTimerTicks function with all collected timerIds
98
98
  if (triggeredTimerIds.length > 0) {
99
- this.handleTimerTicks && this.handleTimerTicks(triggeredTimerIds);
99
+ var _this$handleTimerTick;
100
+ (_this$handleTimerTick = this.handleTimerTicks) == null || _this$handleTimerTick.call(this, triggeredTimerIds);
100
101
  }
101
102
  }
102
103
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/metronome",
3
- "version": "14.0.1",
3
+ "version": "14.2.1",
4
4
  "description": "GeoWeb metronome library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {