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

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.6",
3
+ "version": "1.9.5-beta.7",
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
@@ -19402,13 +19402,17 @@ module.exports = function (SourceGroup, Lines, DataRetriever, Utils, Invoker, Ko
19402
19402
  };
19403
19403
  SourcesLayer.prototype._removeSource = function (source, isPermanent, shouldBlockEvent) {
19404
19404
  var sourceGroup = this._sourcesGroup[source.id];
19405
- console.log('Removing source', source.id, sourceGroup, this._sourcesGroup);
19405
+ console.log('Removing source', source.id, sourceGroup, this._sourcesGroup.map(function (s) {
19406
+ return s.id;
19407
+ }));
19406
19408
  if (sourceGroup) {
19407
19409
  delete this._sourcesGroup[source.id];
19408
19410
  this._lines.removeSourceGroup(source, isPermanent);
19409
19411
  sourceGroup.destroy();
19410
19412
  }
19411
- console.log('REMOVED', source.id, isPermanent, sourceGroup, this._sourcesGroup);
19413
+ console.log('REMOVED', source.id, isPermanent, sourceGroup, this._sourcesGroup.map(function (s) {
19414
+ return s.id;
19415
+ }));
19412
19416
  if (isPermanent && !shouldBlockEvent) {
19413
19417
  this._peaks.emit('source.destroyed', source);
19414
19418
  }
@@ -568,7 +568,9 @@ define([
568
568
  SourcesLayer.prototype._removeSource = function(source, isPermanent, shouldBlockEvent) {
569
569
  var sourceGroup = this._sourcesGroup[source.id];
570
570
 
571
- console.log('Removing source', source.id, sourceGroup, this._sourcesGroup);
571
+ console.log('Removing source', source.id, sourceGroup, this._sourcesGroup.map(function(s) {
572
+ return s.id;
573
+ }));
572
574
 
573
575
  if (sourceGroup) {
574
576
  delete this._sourcesGroup[source.id];
@@ -576,7 +578,9 @@ define([
576
578
  sourceGroup.destroy();
577
579
  }
578
580
 
579
- console.log('REMOVED', source.id, isPermanent, sourceGroup, this._sourcesGroup);
581
+ console.log('REMOVED', source.id, isPermanent, sourceGroup, this._sourcesGroup.map(function(s) {
582
+ return s.id;
583
+ }));
580
584
 
581
585
  if (isPermanent && !shouldBlockEvent) {
582
586
  this._peaks.emit('source.destroyed', source);