buildSDK/bundle_build.sh
[roojs1] / roojs-bootstrap-debug.js
index b4a9183..2bcdb19 100644 (file)
@@ -2060,13 +2060,13 @@ Roo.bootstrap.Menu = function(config){
     this.addEvents({
         /**
          * @event beforeshow
-         * Fires before this menu is displayed (return true to block)
+         * Fires before this menu is displayed (return false to block)
          * @param {Roo.menu.Menu} this
          */
         beforeshow : true,
         /**
          * @event beforehide
-         * Fires before this menu is hidden (return true to block)
+         * Fires before this menu is hidden (return false to block)
          * @param {Roo.menu.Menu} this
          */
         beforehide : true,
@@ -2290,7 +2290,8 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
      */
     show : function(el, pos, parentMenu)
     {
-        if (true === this.fireEvent("beforeshow", this)) {
+        if (false === this.fireEvent("beforeshow", this)) {
+           Roo.log("show canceled");
            return;
        }
        this.parentMenu = parentMenu;
@@ -2360,7 +2361,8 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
      */
     hide : function(deep)
     {
-        if (true === this.fireEvent("beforehide", this)) {
+        if (false === this.fireEvent("beforehide", this)) {
+           Roo.log("hide canceled");
            return;
        }
         this.hideMenuItems();