@checksub_team/peaks_timeline 1.8.1 → 1.8.2
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 -1
- package/src/timeline-sources.js +3 -1
package/package.json
CHANGED
package/peaks.js
CHANGED
|
@@ -19728,7 +19728,7 @@ module.exports = function (Source, Utils) {
|
|
|
19728
19728
|
wrapping: sourceToCut.wrapping,
|
|
19729
19729
|
previewHeight: sourceToCut.previewHeight,
|
|
19730
19730
|
binaryHeight: sourceToCut.binaryHeight
|
|
19731
|
-
}]);
|
|
19731
|
+
}])[0];
|
|
19732
19732
|
this._peaks.emit('sources.updated', [
|
|
19733
19733
|
sourceToCut,
|
|
19734
19734
|
newSource
|
|
@@ -19790,6 +19790,7 @@ module.exports = function (Source, Utils) {
|
|
|
19790
19790
|
self._addSource(source);
|
|
19791
19791
|
});
|
|
19792
19792
|
this._peaks.emit('sources.add', sources);
|
|
19793
|
+
return sources;
|
|
19793
19794
|
};
|
|
19794
19795
|
TimelineSources.prototype._findSource = function (predicate) {
|
|
19795
19796
|
var indexes = [];
|
package/src/timeline-sources.js
CHANGED
|
@@ -98,7 +98,7 @@ define([
|
|
|
98
98
|
wrapping: sourceToCut.wrapping,
|
|
99
99
|
previewHeight: sourceToCut.previewHeight,
|
|
100
100
|
binaryHeight: sourceToCut.binaryHeight
|
|
101
|
-
}]);
|
|
101
|
+
}])[0];
|
|
102
102
|
|
|
103
103
|
this._peaks.emit('sources.updated', [sourceToCut, newSource]);
|
|
104
104
|
};
|
|
@@ -283,6 +283,8 @@ define([
|
|
|
283
283
|
});
|
|
284
284
|
|
|
285
285
|
this._peaks.emit('sources.add', sources);
|
|
286
|
+
|
|
287
|
+
return sources;
|
|
286
288
|
};
|
|
287
289
|
|
|
288
290
|
/**
|