LWWidget.Menu.Mode = Base.Comp.inherits({ constructor: function (name) { this.base(); this.name = name; this.items = new Base.Util.Hashtable(); this.selected = null; this.addSlot('itemDestroyed'); this.addSlot('itemClicked'); this.addEvent('Click'); }, destroy: function () { var items = this.items.values(); for (var i in items) { var _i = items[i]; this.items.remove(items[i]._cid); items[i].destroy(); } this.base(); }, draw: function () { var str = '', items = this.items.values(); for (var i=0;i