X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..92c2b89db26be16707f4a805d3303ab2531006e1:/src/widgets/menu/MenuMgr.js?ds=sidebyside diff --git a/src/widgets/menu/MenuMgr.js b/src/widgets/menu/MenuMgr.js index 8d24e019..6d0e9642 100644 --- a/src/widgets/menu/MenuMgr.js +++ b/src/widgets/menu/MenuMgr.js @@ -1,6 +1,6 @@ /*! - * Ext JS Library 3.1.0 - * Copyright(c) 2006-2009 Ext JS, LLC + * Ext JS Library 3.1.1 + * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ @@ -56,7 +56,7 @@ Ext.menu.MenuMgr = function(){ if(m.parentMenu){ m.getEl().setZIndex(parseInt(m.parentMenu.getEl().getStyle("z-index"), 10) + 3); m.parentMenu.activeChild = m; - }else if(last && last.isVisible()){ + }else if(last && !last.isDestroyed && last.isVisible()){ m.getEl().setZIndex(parseInt(last.getEl().getStyle("z-index"), 10) + 3); } } @@ -108,7 +108,7 @@ Ext.menu.MenuMgr = function(){ * @return {Boolean} success True if any active menus were hidden. */ hideAll : function(){ - return hideAll(); + return hideAll(); }, // private