@checksub_team/peaks_timeline 1.9.5-beta.7 → 1.9.5-beta.8
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 -6
- package/src/sources-layer.js +2 -6
package/package.json
CHANGED
package/peaks.js
CHANGED
|
@@ -19402,17 +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
|
|
19406
|
-
return s.id;
|
|
19407
|
-
}));
|
|
19405
|
+
console.log('Removing source', source.id, sourceGroup, Object.keys(this._sourcesGroup));
|
|
19408
19406
|
if (sourceGroup) {
|
|
19409
19407
|
delete this._sourcesGroup[source.id];
|
|
19410
19408
|
this._lines.removeSourceGroup(source, isPermanent);
|
|
19411
19409
|
sourceGroup.destroy();
|
|
19412
19410
|
}
|
|
19413
|
-
console.log('REMOVED', source.id, isPermanent, sourceGroup, this._sourcesGroup
|
|
19414
|
-
return s.id;
|
|
19415
|
-
}));
|
|
19411
|
+
console.log('REMOVED', source.id, isPermanent, sourceGroup, Object.keys(this._sourcesGroup));
|
|
19416
19412
|
if (isPermanent && !shouldBlockEvent) {
|
|
19417
19413
|
this._peaks.emit('source.destroyed', source);
|
|
19418
19414
|
}
|
package/src/sources-layer.js
CHANGED
|
@@ -568,9 +568,7 @@ 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
|
-
return s.id;
|
|
573
|
-
}));
|
|
571
|
+
console.log('Removing source', source.id, sourceGroup, Object.keys(this._sourcesGroup));
|
|
574
572
|
|
|
575
573
|
if (sourceGroup) {
|
|
576
574
|
delete this._sourcesGroup[source.id];
|
|
@@ -578,9 +576,7 @@ define([
|
|
|
578
576
|
sourceGroup.destroy();
|
|
579
577
|
}
|
|
580
578
|
|
|
581
|
-
console.log('REMOVED', source.id, isPermanent, sourceGroup, this._sourcesGroup
|
|
582
|
-
return s.id;
|
|
583
|
-
}));
|
|
579
|
+
console.log('REMOVED', source.id, isPermanent, sourceGroup, Object.keys(this._sourcesGroup));
|
|
584
580
|
|
|
585
581
|
if (isPermanent && !shouldBlockEvent) {
|
|
586
582
|
this._peaks.emit('source.destroyed', source);
|