Don't collect results from Menu::_callMenuWillShow
This commit is contained in:
Родитель
93939089ec
Коммит
3a08aa37de
|
@ -249,19 +249,14 @@ Menu.prototype.insert = function(pos, item) {
|
|||
|
||||
// Force menuWillShow to be called
|
||||
Menu.prototype._callMenuWillShow = function() {
|
||||
var item, j, len, ref1, ref2, results;
|
||||
if ((ref1 = this.delegate) != null) {
|
||||
ref1.menuWillShow();
|
||||
if (this.delegate != null) {
|
||||
this.delegate.menuWillShow();
|
||||
}
|
||||
ref2 = this.items;
|
||||
results = [];
|
||||
for (j = 0, len = ref2.length; j < len; j++) {
|
||||
item = ref2[j];
|
||||
this.items.forEach(function(item) {
|
||||
if (item.submenu != null) {
|
||||
results.push(item.submenu._callMenuWillShow());
|
||||
item.submenu._callMenuWillShow();
|
||||
}
|
||||
}
|
||||
return results;
|
||||
});
|
||||
};
|
||||
|
||||
var applicationMenu = null;
|
||||
|
|
Загрузка…
Ссылка в новой задаче