Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 5a962573b7566abeb420eb7e828f23bcc99b4a35 1 parent 1eb463b
@nicolasbadia nicolasbadia authored dcporter committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  frameworks/desktop/panes/menu.js
View
2  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) {
Please sign in to comment.
Something went wrong with that request. Please try again.