Skip to content

Commit

Permalink
Don't collect results from delegate.menuWillShow
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Mar 11, 2016
1 parent 3a08aa3 commit 6b1748d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/browser/api/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,8 @@ Menu.prototype._init = function() {
return function() {

// Make sure radio groups have at least one menu item seleted.
var checked, group, id, j, len, radioItem, ref1, results;
var checked, group, id, j, len, radioItem, ref1;
ref1 = _this.groupsMap;
results = [];
for (id in ref1) {
group = ref1[id];
checked = false;
Expand All @@ -147,12 +146,9 @@ Menu.prototype._init = function() {
break;
}
if (!checked) {
results.push(v8Util.setHiddenValue(group[0], 'checked', true));
} else {
results.push(void 0);
v8Util.setHiddenValue(group[0], 'checked', true);
}
}
return results;
};
})(this)
};
Expand Down

0 comments on commit 6b1748d

Please sign in to comment.