X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775:/docs/source/BaseItem.html diff --git a/docs/source/BaseItem.html b/docs/source/BaseItem.html index 266b2f56..c97eaf75 100644 --- a/docs/source/BaseItem.html +++ b/docs/source/BaseItem.html @@ -1,11 +1,17 @@ - - - The source code - - - - -
/** + + + The source code + + + + +
/*!
+ * Ext JS Library 3.0.3
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+
/** * @class Ext.menu.BaseItem * @extends Ext.Component * The base class for all items that render into menus. BaseItem provides default rendering, activated state @@ -147,8 +153,13 @@ Ext.extend(Ext.menu.BaseItem, Ext.Component, { // private handleClick : function(e){ + var pm = this.parentMenu; if(this.hideOnClick){ - this.parentMenu.hide.defer(this.clickHideDelay, this.parentMenu, [true]); + if(pm.floating){ + pm.hide.defer(this.clickHideDelay, pm, [true]); + }else{ + pm.deactivateActive(); + } } }, @@ -158,6 +169,6 @@ Ext.extend(Ext.menu.BaseItem, Ext.Component, { // private. Do nothing hideMenu : Ext.emptyFn }); -Ext.reg('menubaseitem', Ext.menu.BaseItem);
- +Ext.reg('menubaseitem', Ext.menu.BaseItem);
+ \ No newline at end of file