I am playing around with the menu item trying to figure out how exactly it all works. And I seem to have ran into a few bugs.
It seems that if I try to append an item I already appended to a menu attached to the menubar it hangs the inspector.
It also seems that any callback attached to the menu item (in the above case "Click me") doesn't get called. Even when you click on it.
Mac 10.8 - using the latest NW
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
you are trying to append an item that is already in the menubar....
I modified your gist... this should do the trick
Yah I know. It's still a bug because it should not crash the inspector/cause it to hang. It should fail gracefully with a message.
should be fixed in 0.13.0 RC.