- Dave -
Thanks for the email. We're aware of the JS error and this problem will
be fixed in the upcoming 2.3.1 release of YUI. In the meantime you can
use the "removeItem" method
of YAHOO.widget.Menu to remove items from your Menu instance.
> There seems to be a problem with the upgrade from 2.2.2 to 2.3.0
> involving reusing context menus with submenus.
> I am currently using a single context menu and removing and adding new
> entries depending on what is clicked upon.
> When the menu closes, I remove all items within the menu, and when a
> new one is opened, I then add new items.
> The problem seems to be that when items are removed from a menu, the
> config object within them are destroyed. So, when I add new menu
> entries, I get told that 'this.cfg' doesn't exist at menu.js line 3850.
> Is there a way to clear out menu entries without this occurring?
> Otherwise are there any expected side-effects to removing the lines at
> 1805 and 1806 in container.js which destroy the config object? Or is
> there an alternate way of removing entries that won't destroy the
> config object?