Roo/bootstrap/Button.js
[roojs1] / Roo / bootstrap / Button.js
index ffc70eb..36dadbf 100644 (file)
@@ -264,11 +264,12 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     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));
         }