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() {
|
return function() {
|
||||||
|
|
||||||
// Make sure radio groups have at least one menu item seleted.
|
// 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;
|
ref1 = _this.groupsMap;
|
||||||
results = [];
|
|
||||||
for (id in ref1) {
|
for (id in ref1) {
|
||||||
group = ref1[id];
|
group = ref1[id];
|
||||||
checked = false;
|
checked = false;
|
||||||
|
@ -147,12 +146,9 @@ Menu.prototype._init = function() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!checked) {
|
if (!checked) {
|
||||||
results.push(v8Util.setHiddenValue(group[0], 'checked', true));
|
v8Util.setHiddenValue(group[0], 'checked', true);
|
||||||
} else {
|
|
||||||
results.push(void 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return results;
|
|
||||||
};
|
};
|
||||||
})(this)
|
})(this)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue