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

index 8faba35..3e44b6d 100644 (file)
@@ -171,6 +171,10 @@ Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component,  {
     
     show : function()
     {
+        if(this.fireEvent("beforeshow", this) === false){
+            return;
+        };
+        
         this.hidden = false;
         this.el.addClass('open');