mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Don't collect results from delegate.menuWillShow
This commit is contained in:
@@ -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;
|
||||
@@ -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)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user