Don't collect results from delegate.menuWillShow
This commit is contained in:
Родитель
3a08aa37de
Коммит
6b1748d6d6
|
@ -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)
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче