From c7640de07e11d3b119969cf2618046caf2469e5c Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 30 Jan 2017 21:54:32 -0700 Subject: [PATCH] Add focusItemIndex property --- core/menu_view.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/menu_view.js b/core/menu_view.js index ec225907..fe4954f2 100644 --- a/core/menu_view.js +++ b/core/menu_view.js @@ -141,12 +141,13 @@ MenuView.prototype.setItemSpacing = function(itemSpacing) { MenuView.prototype.setPropertyValue = function(propName, value) { switch(propName) { - case 'itemSpacing' : this.setItemSpacing(value); break; - case 'items' : this.setItems(value); break; - case 'focusItems' : this.setFocusItems(value); break; - case 'hotKeys' : this.setHotKeys(value); break; - case 'hotKeySubmit' : this.hotKeySubmit = value; break; - case 'justify' : this.justify = value; break; + case 'itemSpacing' : this.setItemSpacing(value); break; + case 'items' : this.setItems(value); break; + case 'focusItems' : this.setFocusItems(value); break; + case 'hotKeys' : this.setHotKeys(value); break; + case 'hotKeySubmit' : this.hotKeySubmit = value; break; + case 'justify' : this.justify = value; break; + case 'focusItemIndex' : this.focusedItemIndex = value; break; } MenuView.super_.prototype.setPropertyValue.call(this, propName, value);