<p dir="auto">It would be great to be able to pass a function as the attribute value. That function should be called before showing the menu. How about that?</p>
<p dir="auto">Maybe I missunderstood something but trying to overwrite some delegates in a newly created Menu will not call my custom function:</p>
<p dir="auto">menu.delegate.menuWillShow = function () {<br>
console.log('MY MENU DELEGATE');<br>
}</p>
<p dir="auto">menu.delegate.menuWillShow(); // doesn't call my function??</p>
<p dir="auto">Note that the Menu is created using remote call within a BrowserWindow.</p>