initEvents : function()
{
- Roo.log(this.el);
-
- this.list = this.el.select('ul.dropdown-menu', true).first();
-
- Roo.log(this.list);
-
- this.list.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'none';
-
+ this.list().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'none';
if(this.isSubMenu){
return;
},
+ list : function()
+ {
+ if(this.isSubMenu){
+ return this.el;
+ }
+
+ return this.el.select('ul.dropdown-menu', true).first();
+ },
+
onClick : function(e)
{
this.fireEvent("click", this, e);