@checksub_team/peaks_timeline 1.9.5-beta.2 → 1.9.5-beta.4
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 +1 -1
- package/peaks.js +2 -0
- package/src/sources-layer.js +4 -0
package/package.json
CHANGED
package/peaks.js
CHANGED
|
@@ -19402,11 +19402,13 @@ 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
19406
|
if (sourceGroup) {
|
|
19406
19407
|
delete this._sourcesGroup[source.id];
|
|
19407
19408
|
this._lines.removeSourceGroup(source, isPermanent);
|
|
19408
19409
|
sourceGroup.destroy();
|
|
19409
19410
|
}
|
|
19411
|
+
console.log('REMOVED', source.id, sourceGroup, this._sourcesGroup);
|
|
19410
19412
|
if (isPermanent && !shouldBlockEvent) {
|
|
19411
19413
|
this._peaks.emit('source.destroyed', source);
|
|
19412
19414
|
}
|
package/src/sources-layer.js
CHANGED
|
@@ -568,12 +568,16 @@ 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);
|
|
572
|
+
|
|
571
573
|
if (sourceGroup) {
|
|
572
574
|
delete this._sourcesGroup[source.id];
|
|
573
575
|
this._lines.removeSourceGroup(source, isPermanent);
|
|
574
576
|
sourceGroup.destroy();
|
|
575
577
|
}
|
|
576
578
|
|
|
579
|
+
console.log('REMOVED', source.id, sourceGroup, this._sourcesGroup);
|
|
580
|
+
|
|
577
581
|
if (isPermanent && !shouldBlockEvent) {
|
|
578
582
|
this._peaks.emit('source.destroyed', source);
|
|
579
583
|
}
|