Skip to content
Browse files

Allow disabling of default components.

  • Loading branch information...
1 parent 448a70d commit 94044afe74b9bbbff930eb3bb0024058423be175 Steve Heffernan committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/component.js
View
4 src/component.js
@@ -77,6 +77,10 @@ _V_.Component = _V_.Class.extend({
// Loop through components and add them to the player
this.eachProp(options.components, function(name, opts){
+ // Allow for disabling default components
+ // e.g. _V_.options.components.posterImage = false
+ if (opts === false) return;
+
// Allow waiting to add components until a specific event is called
var tempAdd = this.proxy(function(){
// Set property name on player. Could cause conflicts with other prop names, but it's worth making refs easy.

0 comments on commit 94044af

Please sign in to comment.
Something went wrong with that request. Please try again.