Permalink
Browse files

SC.MenuPane now ignores the first item if it is a separator

  • Loading branch information...
1 parent 1eb463b commit 5a962573b7566abeb420eb7e828f23bcc99b4a35 @nicolasbadia nicolasbadia committed with dcporter Oct 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 frameworks/desktop/panes/menu.js
@@ -829,7 +829,7 @@ SC.MenuPane = SC.PickerPane.extend(
item = items.objectAt(idx);
// fast track out if we can't do anything with this item
- if (!item) continue;
+ if (!item || (!ret.length && item[this.get('itemSeparatorKey')])) continue;
itemType = SC.typeOf(item);
if (itemType === SC.T_STRING) {

0 comments on commit 5a96257

Please sign in to comment.