Skip to content

Commit

Permalink
fix ready listener when loading multiple audio files
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Apr 2, 2019
1 parent 118a1bc commit ae69a2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ wavesurfer.js changelog
- add `followCursorY` option
- Spectrogram plugin: fix `ready` listener when loading multiple
audio files (#1572)
- Regions plugin: fix `ready` listener when loading multiple
audio files (#1602)

2.2.1 (18.03.2019)
------------------
Expand Down
7 changes: 7 additions & 0 deletions example/regions/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ document.addEventListener('DOMContentLoaded', function() {
]
});

function loadFile() {
wavesurfer.load('../media/demo.wav');
}

var loadbtn = document.querySelector('#loadBtn');
loadbtn.onclick = loadFile;

// Load audio from URL
wavesurfer.load('../media/demo.wav');

Expand Down

0 comments on commit ae69a2f

Please sign in to comment.