Skip to content

Commit

Permalink
make the components available in the ready callback as well
Browse files Browse the repository at this point in the history
  • Loading branch information
eikes committed May 25, 2012
1 parent c189332 commit 7502785
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/player.js
Expand Up @@ -14,9 +14,6 @@ _V_.Player = _V_.Component.extend({
_V_.merge(options, this.getVideoTagSettings()); // Override with Video Tag Options _V_.merge(options, this.getVideoTagSettings()); // Override with Video Tag Options
_V_.merge(options, addOptions); // Override/extend with options from setup call _V_.merge(options, addOptions); // Override/extend with options from setup call


// Add callback to ready queue
this.ready(ready);

// Store controls setting, and then remove immediately so native controls don't flash. // Store controls setting, and then remove immediately so native controls don't flash.
tag.removeAttribute("controls"); tag.removeAttribute("controls");


Expand Down Expand Up @@ -85,6 +82,9 @@ _V_.Player = _V_.Component.extend({
}); });
} }


// Add callback to ready queue
this.ready(ready);

// Tracks defined in tracks.js // Tracks defined in tracks.js
this.textTracks = []; this.textTracks = [];
if (options.tracks && options.tracks.length > 0) { if (options.tracks && options.tracks.length > 0) {
Expand Down Expand Up @@ -919,4 +919,4 @@ _V_.Player = _V_.Component.extend({
}; };
} }


})(); })();

0 comments on commit 7502785

Please sign in to comment.