Skip to content

Commit

Permalink
Add isReady method (katspaugh#1338)
Browse files Browse the repository at this point in the history
* Add isReady method
  • Loading branch information
Guisch authored and thijstriemstra committed Feb 26, 2018
1 parent a7d2e75 commit dcf7a82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/wavesurfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,16 @@ export default class WaveSurfer extends util.Observer {
return this.isMuted;
}

/**
* Get the current ready status.
*
* @example const isReady = wavesurfer.isReady();
* @return {boolean}
*/
isReady() {
return this.isReady;
}

/**
* Get the list of current set filters as an array.
*
Expand Down

0 comments on commit dcf7a82

Please sign in to comment.