From 9d258742c5e0ef73b0fd099bfaadefe60d46dd13 Mon Sep 17 00:00:00 2001 From: Jon Wong Date: Thu, 3 Apr 2014 23:35:15 -0700 Subject: [PATCH] Adjusting menu to use title given in options --- src/js/menu.js | 2 +- test/unit/menu.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/js/menu.js b/src/js/menu.js index 3dac179140..55558a9c0c 100644 --- a/src/js/menu.js +++ b/src/js/menu.js @@ -131,7 +131,7 @@ vjs.MenuButton.prototype.createMenu = function(){ if (this.options().title) { menu.contentEl().appendChild(vjs.createEl('li', { className: 'vjs-menu-title', - innerHTML: vjs.capitalize(this.kind_), + innerHTML: vjs.capitalize(this.options().title), tabindex: -1 })); } diff --git a/test/unit/menu.js b/test/unit/menu.js index 015719b42c..fc79340ccb 100644 --- a/test/unit/menu.js +++ b/test/unit/menu.js @@ -5,10 +5,8 @@ test('should place title list item into ul', function() { player = PlayerTest.makePlayer(); - vjs.MenuButton.prototype.kind_ = 'testTitle'; - menuButton = new vjs.MenuButton(player, { - 'title': true + 'title': 'testTitle' }); var menuContentElement = menuButton.el().getElementsByTagName('UL')[0];