Merge branch 'develop' of github.com:sampotts/plyr into develop
This commit is contained in:
		| @ -191,8 +191,10 @@ const captions = { | |||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             // Toggle state |             // Toggle button if it's enabled | ||||||
|  |             if (this.elements.buttons.captions) { | ||||||
|                 this.elements.buttons.captions.pressed = active; |                 this.elements.buttons.captions.pressed = active; | ||||||
|  |             } | ||||||
|  |  | ||||||
|             // Add class hook |             // Add class hook | ||||||
|             toggleClass(this.elements.container, activeClass, active); |             toggleClass(this.elements.container, activeClass, active); | ||||||
|  | |||||||
| @ -431,9 +431,11 @@ class Listeners { | |||||||
|         }; |         }; | ||||||
|  |  | ||||||
|         // Play/pause toggle |         // Play/pause toggle | ||||||
|  |         if (this.player.elements.buttons.play) { | ||||||
|             Array.from(this.player.elements.buttons.play).forEach(button => { |             Array.from(this.player.elements.buttons.play).forEach(button => { | ||||||
|                 bind(button, 'click', this.player.togglePlay, 'play'); |                 bind(button, 'click', this.player.togglePlay, 'play'); | ||||||
|             }); |             }); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         // Pause |         // Pause | ||||||
|         bind(this.player.elements.buttons.restart, 'click', this.player.restart, 'restart'); |         bind(this.player.elements.buttons.restart, 'click', this.player.restart, 'restart'); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user