Skip to content

Commit

Permalink
Close GH-654: Export createItems call to enable plugins to hook into …
Browse files Browse the repository at this point in the history
…process. Fixes #648
  • Loading branch information
dominic-p authored and heff committed Jul 30, 2013
1 parent 89fb86b commit 15fab6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/js/exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ goog.exportSymbol('videojs.PosterImage', vjs.PosterImage);
goog.exportSymbol('videojs.Menu', vjs.Menu);
goog.exportSymbol('videojs.MenuItem', vjs.MenuItem);
goog.exportSymbol('videojs.MenuButton', vjs.MenuButton);
goog.exportProperty(vjs.MenuButton.prototype, 'createItems', vjs.MenuButton.prototype.createItems);
goog.exportProperty(vjs.TextTrackButton.prototype, 'createItems', vjs.TextTrackButton.prototype.createItems);
goog.exportProperty(vjs.ChaptersButton.prototype, 'createItems', vjs.ChaptersButton.prototype.createItems);

goog.exportSymbol('videojs.SubtitlesButton', vjs.SubtitlesButton);
goog.exportSymbol('videojs.CaptionsButton', vjs.CaptionsButton);
Expand Down
2 changes: 1 addition & 1 deletion src/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ vjs.MenuButton.prototype.createMenu = function(){
}));
}

this.items = this.createItems();
this.items = this['createItems']();

if (this.items) {
// Add menu items to the menu
Expand Down

0 comments on commit 15fab6d

Please sign in to comment.