I think it doesn't cost to throw away and build a new one.  

--  
Hoa V. Dinh


On Monday, November 18, 2013 at 3:14 PM, Devon Carew wrote:

> In ide/app/lib/ui/files_controller.dart:
> > + > + void _handleContextMenu(html.Event e, Resource resource) { > + // TODO: show the context menu > + > + cancelEvent(e); > + } > + > + void _handleMenuClick(FileItemCell cell, Resource resource) { > + List<ContextAction> actions = _delegate.getActionsFor(resource); > + > + // TODO: show the context menu > + > +// html.Element element = createContextMenu(actions, showAccelerators: false); > +// cell.menuElement.children.add(element); > +// bootjack.Dropdown dropdown = bootjack.Dropdown.wire(element); > +// dropdown.toggle();  
> I'll add a todo. I'm not sure whether it makes more sense to re-use an existing created menu or just throw it away and make a new one.
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/dart-lang/spark/pull/249/files#r7743357).
>  
>  
>