addItem()/make[Last]Submenu()
Status: Inactive
Brought to you by:
nettrom
Michael Richards came up with the idea that instead of
having to create the parent item, make a new menu, add
items to it, then hook it up, the addItem() method
should itself see that it's not attached to another
menu and use MTMLastItem to hook itself up to the
parent item that was just created.
This puts some restrictions on the flexibility of the
menu code since it'll require the submenu to appear
just after the added parent item, but it'll greatly
ease menu creation since it gets rid of makeSubmenu()
and makeLastSubmenu().