Permalink
Browse files

make the components available in the ready callback as well

  • Loading branch information...
1 parent c189332 commit 75027850621457ceeff448fe0bdd8734fb753bd9 @eikes eikes committed May 25, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/player.js
View
@@ -14,9 +14,6 @@ _V_.Player = _V_.Component.extend({
_V_.merge(options, this.getVideoTagSettings()); // Override with Video Tag Options
_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.
tag.removeAttribute("controls");
@@ -85,6 +82,9 @@ _V_.Player = _V_.Component.extend({
});
}
+ // Add callback to ready queue
+ this.ready(ready);
+
// Tracks defined in tracks.js
this.textTracks = [];
if (options.tracks && options.tracks.length > 0) {
@@ -919,4 +919,4 @@ _V_.Player = _V_.Component.extend({
};
}
-})();
+})();

0 comments on commit 7502785

Please sign in to comment.