On Thu, Sep 6, 2012 at 4:24 PM, Craig Rob l300lvl <a...@yahoo.ca> wrote: > I'm driving myself crazy trying to figure out why I get an error about > popMenu not being a constructer. Looking glass says: > Failed to evaluate init function:TypeError: PopupMenu.PopupSubMenuItem > is not a constructor. > > Basically I'm trying to create a PopupSubMenuItem that "menuItem"(which > creates a Switch item) is then added to. Why would it see popMenu as a > var? > > let popMenu = new PopupMenu.PopupSubMenuItem(_("List")); > this.menu.addMenuItem(popMenu); > menuItem = new > PopupMenu.PopupSwitchMenuItem(_(thisName),init_val); > popMenu.menu.addMenuItem(menuItem); > > Any knowledge here would be very appreciated.
It's a PopupSubMenuMenuItem.... ... why are you staring at me? I didn't name it. > _______________________________________________ > gnome-shell-list mailing list > gnome-shell-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gnome-shell-list -- Jasper _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list