// 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;