X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/source/MenuMgr.html?ds=inline diff --git a/docs/source/MenuMgr.html b/docs/source/MenuMgr.html index faab37e1..28ba54df 100644 --- a/docs/source/MenuMgr.html +++ b/docs/source/MenuMgr.html @@ -1,5 +1,6 @@ + The source code @@ -31,7 +32,9 @@ Ext.menu.MenuMgr = function(){ c.each(function(m){ m.hide(); }); + return true; } + return false; } // private @@ -104,9 +107,10 @@ Ext.menu.MenuMgr = function(){
/** * Hides all menus that are currently visible + * @return {Boolean} success True if any active menus were hidden. */ hideAll : function(){ - hideAll(); + return hideAll(); }, // private @@ -115,18 +119,12 @@ Ext.menu.MenuMgr = function(){ init(); } menus[menu.id] = menu; - menu.on("beforehide", onBeforeHide); - menu.on("hide", onHide); - menu.on("beforeshow", onBeforeShow); - menu.on("show", onShow); - var g = menu.group; - if(g && menu.events["checkchange"]){ - if(!groups[g]){ - groups[g] = []; - } - groups[g].push(menu); - menu.on("checkchange", onCheck); - } + menu.on({ + beforehide: onBeforeHide, + hide: onHide, + beforeshow: onBeforeShow, + show: onShow + }); },
/** @@ -157,11 +155,6 @@ Ext.menu.MenuMgr = function(){ menu.un("hide", onHide); menu.un("beforeshow", onBeforeShow); menu.un("show", onShow); - var g = menu.group; - if(g && menu.events["checkchange"]){ - groups[g].remove(menu); - menu.un("checkchange", onCheck); - } }, // private