Skip to content

Commit

Permalink
Simplified code
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisn committed Oct 19, 2024
1 parent 3cf46b6 commit 1358068
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions src/scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ import { Rect } from 'konva/lib/shapes/Rect';
* @class
* @alias Scrollbar
*
* @param {WaveformData} waveformData
* @param {HTMLElement} container
* @param {Peaks} peaks
*/

function Scrollbar(waveformData, container, peaks) {
this._waveformData = waveformData;
function Scrollbar(container, peaks) {
this._container = container;
this._peaks = peaks;
this._options = peaks.options.scrollbar;
Expand Down
3 changes: 0 additions & 3 deletions src/view-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ ViewController.prototype.createZoomview = function(container) {
};

ViewController.prototype.createScrollbar = function(container) {
const waveformData = this._peaks.getWaveformData();

this._scrollbar = new Scrollbar(
waveformData,
container,
this._peaks
);
Expand Down

0 comments on commit 1358068

Please sign in to comment.