* @see blackberry.core.ScriptableFunctionBase#execute(Object, Object[])
*/
public Object execute( Object thiz, Object[] args ) throws Exception {
// Get the screen that currently owns the BrowserField
MainScreen screen = (MainScreen) MenuExtension.getBrowserField().getScreen();
Object[] list = MenuItemObjectManager.getMenuItemObjects();
for( int i = 0; i < list.length; i++ ) {
screen.removeMenuItem( ( (MenuItemObject) list[ i ] ).getMenuItem() );
}
MenuItemObjectManager.clearMenuItemObjects();
return UNDEFINED;
}