@checksub_team/peaks_timeline 1.4.50 → 1.4.51

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checksub_team/peaks_timeline",
3
- "version": "1.4.50",
3
+ "version": "1.4.51",
4
4
  "description": "JavaScript UI component for displaying audio waveforms",
5
5
  "main": "./peaks.js",
6
6
  "types": "./peaks.js.d.ts",
package/peaks.js CHANGED
@@ -16882,7 +16882,7 @@ module.exports = function (Utils) {
16882
16882
  indicators: this.indicators
16883
16883
  };
16884
16884
  Utils.extend(opts, options);
16885
- var shouldNotifyUpdate = validateSegment(this._peaks, opts, 'update()');
16885
+ validateSegment(this._peaks, opts, 'update()');
16886
16886
  this._startTime = opts.startTime;
16887
16887
  this._endTime = opts.endTime;
16888
16888
  this._labelText = opts.labelText;
@@ -16896,9 +16896,6 @@ module.exports = function (Utils) {
16896
16896
  this._line = opts.line;
16897
16897
  this._indicators = opts.indicators;
16898
16898
  this._peaks.emit('segment.updated', this);
16899
- if (shouldNotifyUpdate) {
16900
- this._peaks.emit('segments.updated', [this]);
16901
- }
16902
16899
  };
16903
16900
  Segment.prototype.isVisible = function (startTime, endTime) {
16904
16901
  return this.startTime < endTime && startTime < this.endTime;
package/src/segment.js CHANGED
@@ -250,7 +250,7 @@ define([
250
250
 
251
251
  Utils.extend(opts, options);
252
252
 
253
- var shouldNotifyUpdate = validateSegment(this._peaks, opts, 'update()');
253
+ validateSegment(this._peaks, opts, 'update()');
254
254
 
255
255
  this._startTime = opts.startTime;
256
256
  this._endTime = opts.endTime;
@@ -266,10 +266,6 @@ define([
266
266
  this._indicators = opts.indicators;
267
267
 
268
268
  this._peaks.emit('segment.updated', this);
269
-
270
- if (shouldNotifyUpdate) {
271
- this._peaks.emit('segments.updated', [this]);
272
- }
273
269
  };
274
270
 
275
271
  /**