@checksub_team/peaks_timeline 1.4.29 → 1.4.30
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 +4 -2
- package/src/timeline-segments.js +5 -2
package/package.json
CHANGED
package/peaks.js
CHANGED
|
@@ -19296,8 +19296,10 @@ module.exports = function (Colors, Segment, Utils) {
|
|
|
19296
19296
|
return this._removeSegments(fnFilter);
|
|
19297
19297
|
};
|
|
19298
19298
|
TimelineSegments.prototype.removeAll = function (lineId) {
|
|
19299
|
-
this.
|
|
19300
|
-
|
|
19299
|
+
var indexes = this._findSegment(function (segment) {
|
|
19300
|
+
return segment.line === lineId;
|
|
19301
|
+
});
|
|
19302
|
+
this._removeIndexes(indexes);
|
|
19301
19303
|
this._peaks.emit('segments.remove_all', lineId);
|
|
19302
19304
|
};
|
|
19303
19305
|
return TimelineSegments;
|
package/src/timeline-segments.js
CHANGED
|
@@ -382,8 +382,11 @@ define([
|
|
|
382
382
|
*/
|
|
383
383
|
|
|
384
384
|
TimelineSegments.prototype.removeAll = function(lineId) {
|
|
385
|
-
this.
|
|
386
|
-
|
|
385
|
+
var indexes = this._findSegment(function(segment) {
|
|
386
|
+
return segment.line === lineId;
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
this._removeIndexes(indexes);
|
|
387
390
|
this._peaks.emit('segments.remove_all', lineId);
|
|
388
391
|
};
|
|
389
392
|
|