Roo/bootstrap/menu/Menu.js
authorEdward <edward@roojs.com>
Thu, 4 Dec 2014 10:30:11 +0000 (18:30 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Dec 2014 10:30:11 +0000 (18:30 +0800)
Roo/bootstrap/menu/Menu.js

index 3e44b6d..043baad 100644 (file)
@@ -171,26 +171,29 @@ Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component,  {
     
     show : function()
     {
-        if(this.fireEvent("beforeshow", this) === false){
-            return;
-        };
+        this.fireEvent("beforeshow", this);
         
         this.hidden = false;
         this.el.addClass('open');
         
         Roo.get(document).on("mousedown", this.onMouseDown, this);
         
+        this.fireEvent("show", this);
+        
     },
     
     hide : function()
     {
+        this.fireEvent("beforehide", this);
+        
         this.hidden = true;
-        this.el.removeClass('open');;
+        this.el.removeClass('open');
+        
+        this.fireEvent("hide", this);
     },
     
     onMouseDown : function()
     {
-        Roo.log('onMouseDown');
         this.hide();
     }