Package tweaks

This commit is contained in:
Sam Potts
2018-01-08 19:42:21 +11:00
parent dd190155c4
commit 3f2ac3fca0
8 changed files with 147 additions and 577 deletions

View File

@ -1040,8 +1040,6 @@ class Plyr {
utils.off(this.elements.container, event, callback);
}
/**
* Destroy an instance
* Event listeners are removed when elements are removed

View File

@ -153,7 +153,7 @@ const ui = {
// Check if media is loading
checkLoading(event) {
this.loading = this.media.networkState === 2 || [
this.loading = [
'stalled',
'waiting',
].includes(event.type);