initEvents: function() {
// Roo.log('init events?');
// Roo.log(this.el.dom);
-
+ // add the menu...
+
if (typeof (this.menu) != 'undefined') {
this.menu.parentType = this.xtype;
this.menu.triggerEl = this.el;
- cn.addxtype(Roo.apply({}, this.menu));
+ this.addxtype(Roo.apply({}, this.menu));
}