extension js help: var? Is not a constructer
- From: Craig Rob l300lvl <atz3 yahoo ca>
- To: Gnome Shell List <gnome-shell-list gnome org>
- Subject: extension js help: var? Is not a constructer
- Date: Thu, 06 Sep 2012 15:24:56 -0500
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]