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,
*/
show : function(el, pos, parentMenu)
{
- if (true === this.fireEvent("beforeshow", this)) {
+ if (false === this.fireEvent("beforeshow", this)) {
Roo.log("show canceled");
return;
}
*/
hide : function(deep)
{
- if (true === this.fireEvent("beforehide", this)) {
+ if (false === this.fireEvent("beforehide", this)) {
Roo.log("hide canceled");
return;
}