Would it be more complicated to store the menu items in a client-side-only
collection?


On Sun, Apr 13, 2014 at 4:43 PM, Greg Terrono <notifications@github.com>wrote:

> In lib/menu.coffee:
>
> > +      throw new Meteor.Error 400, 'Can\'t recognize type: ' + item
> > +
> > +    if item.type is 'link'
> > +      item.path = item.use
> > +    else if item.type is 'template'
> > +      item.path = '/admin/view/' + item.use
> > +
> > +    return item
> > +
> > +  Houston.menu._get_menu_items = ->
> > +    @dependency.depend()
> > +    @_process_item item for item in @_menu_items
> > +
> > +  Houston.menu._add_menu_item = (item) ->
> > +    @_menu_items.push item
> > +    @dependency.changed()
>
> I think this is necessary because the menu items aren't stored in a
> Collection or some other reactive object, so it needs to be handled
> manually.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/gterrono/houston/pull/152/files#r11568690>
> .
>