Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from zaggino/menu-separator
Browse files Browse the repository at this point in the history
Implement menu separators
  • Loading branch information
zaggino committed May 3, 2015
2 parents 6ccab03 + 72faace commit 5257e3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/appshell/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ function addMenuItem(parentId, title, id, key, displayStr, position, relativeId,
throw new Error("position not implemented in addMenuItem: " + position);
}

var newObj = {
var isSeparator = title === "---",
newObj = {
type: isSeparator ? "separator" : "normal",
id: id,
label: title,
click: function () {
Expand Down

0 comments on commit 5257e3b

Please sign in to comment.