Sorry, but how can we refactor the Recent Project menu to use a shared
implementation if the implementation is inside Context Menu, which is not
used by the extension itself? Sorry, I'm probably missing something :-)
On Nov 28, 2013 8:27 PM, "Tomás Malbrán" <notifications@github.com> wrote:

> In src/command/DefaultMenus.js:
>
> > +         */
> > +        $("#working-set-option-btn").on("click", function (e) {
> > +            var buttonOffset,
> > +                buttonHeight;
> > +
> > +            e.stopPropagation();
> > +
> > +            if (working_set_settings_cmenu.isOpen()) {
> > +                working_set_settings_cmenu.close();
> > +            } else {
> > +                buttonOffset = $(this).offset();
> > +                buttonHeight = $(this).outerHeight();
> > +                working_set_settings_cmenu.open({
> > +                    pageX: buttonOffset.left,
> > +                    pageY: buttonOffset.top + buttonHeight
> > +                });
>
> I am referring just to refactor, the open/close action when clicking on
> the project title.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/adobe/brackets/pull/6107/files#r7991133>
> .
>