@checksub_team/peaks_timeline 1.9.5-beta.4 → 1.9.5-beta.6

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.9.5-beta.4",
3
+ "version": "1.9.5-beta.6",
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
@@ -15589,8 +15589,8 @@ module.exports = function (Colors, EventEmitter, TimelineSegments, TimelineSourc
15589
15589
  Peaks.prototype.addSource = function (source) {
15590
15590
  this.sources.add(source);
15591
15591
  };
15592
- Peaks.prototype.destroySource = function (sourceId) {
15593
- this.sources.destroyById(sourceId);
15592
+ Peaks.prototype.destroySource = function (sourceId, notify) {
15593
+ this.sources.destroyById(sourceId, !notify);
15594
15594
  };
15595
15595
  Peaks.prototype.showSource = function (sourceId) {
15596
15596
  this.sources.showById(sourceId);
@@ -19408,7 +19408,7 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
19408
19408
  this._lines.removeSourceGroup(source, isPermanent);
19409
19409
  sourceGroup.destroy();
19410
19410
  }
19411
- console.log('REMOVED', source.id, sourceGroup, this._sourcesGroup);
19411
+ console.log('REMOVED', source.id, isPermanent, sourceGroup, this._sourcesGroup);
19412
19412
  if (isPermanent && !shouldBlockEvent) {
19413
19413
  this._peaks.emit('source.destroyed', source);
19414
19414
  }
package/src/main.js CHANGED
@@ -637,8 +637,8 @@ define([
637
637
  * @param {String} sourceId
638
638
  */
639
639
 
640
- Peaks.prototype.destroySource = function(sourceId) {
641
- this.sources.destroyById(sourceId);
640
+ Peaks.prototype.destroySource = function(sourceId, notify) {
641
+ this.sources.destroyById(sourceId, !notify);
642
642
  };
643
643
 
644
644
  /**
@@ -576,7 +576,7 @@ define([
576
576
  sourceGroup.destroy();
577
577
  }
578
578
 
579
- console.log('REMOVED', source.id, sourceGroup, this._sourcesGroup);
579
+ console.log('REMOVED', source.id, isPermanent, sourceGroup, this._sourcesGroup);
580
580
 
581
581
  if (isPermanent && !shouldBlockEvent) {
582
582
  this._peaks.emit('source.destroyed', source);