Skip to content

Commit

Permalink
Renamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisn committed Nov 30, 2024
1 parent 06de9f1 commit 881aa5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/waveform-overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/waveform-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/waveform-zoomview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 881aa5f

Please sign in to comment.