Don't collect results from delegate.menuWillShow
This commit is contained in:
parent
3a08aa37de
commit
6b1748d6d6
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue