Skip to content

Commit

Permalink
update isReady attribute on destroy (katspaugh#1403)
Browse files Browse the repository at this point in the history
set to false on destroy
  • Loading branch information
Guisch authored and thijstriemstra committed Jun 25, 2018
1 parent ea18e64 commit 00b1e81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wavesurfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,7 @@ export default class WaveSurfer extends util.Observer {
this.backend.destroy();
this.drawer.destroy();
this.isDestroyed = true;
this.isReady = false;
this.arraybuffer = null;
}
}

0 comments on commit 00b1e81

Please sign in to comment.