Skip to content

Commit 1358068

Browse files
committed
Simplified code
1 parent 3cf46b6 commit 1358068

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/scrollbar.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ import { Rect } from 'konva/lib/shapes/Rect';
1717
* @class
1818
* @alias Scrollbar
1919
*
20-
* @param {WaveformData} waveformData
2120
* @param {HTMLElement} container
2221
* @param {Peaks} peaks
2322
*/
2423

25-
function Scrollbar(waveformData, container, peaks) {
26-
this._waveformData = waveformData;
24+
function Scrollbar(container, peaks) {
2725
this._container = container;
2826
this._peaks = peaks;
2927
this._options = peaks.options.scrollbar;

src/view-controller.js

-3
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ ViewController.prototype.createZoomview = function(container) {
7171
};
7272

7373
ViewController.prototype.createScrollbar = function(container) {
74-
const waveformData = this._peaks.getWaveformData();
75-
7674
this._scrollbar = new Scrollbar(
77-
waveformData,
7875
container,
7976
this._peaks
8077
);

0 commit comments

Comments
 (0)