From 881aa5fb987324ca90815be7b10e10f6a000d234 Mon Sep 17 00:00:00 2001 From: Chris Needham Date: Sun, 20 Oct 2024 05:07:45 +0100 Subject: [PATCH] Renamed function --- src/waveform-overview.js | 2 +- src/waveform-view.js | 2 +- src/waveform-zoomview.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/waveform-overview.js b/src/waveform-overview.js index 1236be66..fd459ed8 100644 --- a/src/waveform-overview.js +++ b/src/waveform-overview.js @@ -47,7 +47,7 @@ function WaveformOverview(waveformData, container, peaks) { WaveformOverview.prototype = Object.create(WaveformView.prototype); -WaveformOverview.prototype.initWaveform = function() { +WaveformOverview.prototype.initWaveformData = function() { if (this._width !== 0) { this._resampleAndSetWaveformData(this._originalWaveformData, this._width); } diff --git a/src/waveform-view.js b/src/waveform-view.js index c53a2dfd..ea804d6c 100644 --- a/src/waveform-view.js +++ b/src/waveform-view.js @@ -50,7 +50,7 @@ function WaveformView(waveformData, container, peaks, viewOptions) { self._enableSeek = true; - self.initWaveform(); + self.initWaveformData(); // Disable warning: The stage has 6 layers. // Recommended maximum number of layers is 3-5. diff --git a/src/waveform-zoomview.js b/src/waveform-zoomview.js index 6eef5c67..2c09fbd6 100644 --- a/src/waveform-zoomview.js +++ b/src/waveform-zoomview.js @@ -76,7 +76,7 @@ function WaveformZoomView(waveformData, container, peaks) { WaveformZoomView.prototype = Object.create(WaveformView.prototype); -WaveformZoomView.prototype.initWaveform = function() { +WaveformZoomView.prototype.initWaveformData = function() { this._enableWaveformCache = this._options.waveformCache; this._initWaveformCache();