1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

Fixed the VolumeMenuButton options to allow passing 'vertical' to the VolumeBar. closes #1631

This commit is contained in:
Steve Heffernan 2014-10-30 13:57:34 -07:00
parent 1325722447
commit 5d859a92b5
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,8 @@ CHANGELOG
=========
## HEAD (Unreleased)
* @heff fixed checking for child options in the parent options to allow for 'false'; ([view](https://github.com/videojs/video.js/pull/1630))
* @heff fixed checking for child options in the parent options to allow for 'false' ([view](https://github.com/videojs/video.js/pull/1630))
* @heff fixed the VolumeMenuButton options to allow passing 'vertical' to the VolumeBar ([view](https://github.com/videojs/video.js/pull/1631))
--------------------

View File

@ -29,7 +29,7 @@ vjs.VolumeMenuButton.prototype.createMenu = function(){
var menu = new vjs.Menu(this.player_, {
contentElType: 'div'
});
var vc = new vjs.VolumeBar(this.player_, this.options_.volumeBar);
var vc = new vjs.VolumeBar(this.player_, this.options_['volumeBar']);
vc.on('focus', function() {
menu.lockShowing();
});