X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/docs/source/BaseItem.html diff --git a/docs/source/BaseItem.html b/docs/source/BaseItem.html index 8e11eb56..3d4b159b 100644 --- a/docs/source/BaseItem.html +++ b/docs/source/BaseItem.html @@ -1,12 +1,18 @@ - -
- -/** + + + ++ \ No newline at end of fileThe source code + + + + +/*! + * Ext JS Library 3.3.1 + * Copyright(c) 2006-2010 Sencha Inc. + * licensing@sencha.com + * http://www.sencha.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 @@ -47,7 +53,7 @@ Ext.menu.BaseItem = Ext.extend(Ext.Component, { */ hideOnClick : true, /** - * @cfg {Number} clickHideDelay Length of time in milliseconds to wait before hiding after a click (defaults to 100) + * @cfg {Number} clickHideDelay Length of time in milliseconds to wait before hiding after a click (defaults to 1) */ clickHideDelay : 1, @@ -56,33 +62,33 @@ Ext.menu.BaseItem = Ext.extend(Ext.Component, { // private actionMode : "container", - + initComponent : function(){ Ext.menu.BaseItem.superclass.initComponent.call(this); this.addEvents( - /** - * @event click - * Fires when this item is clicked - * @param {Ext.menu.BaseItem} this - * @param {Ext.EventObject} e - */ - 'click', - /** - * @event activate - * Fires when this item is activated - * @param {Ext.menu.BaseItem} this - */ - 'activate', - /** - * @event deactivate - * Fires when this item is deactivated - * @param {Ext.menu.BaseItem} this - */ - 'deactivate' - ); - if(this.handler){ - this.on("click", this.handler, this.scope); - } + /** + * @event click + * Fires when this item is clicked + * @param {Ext.menu.BaseItem} this + * @param {Ext.EventObject} e + */ + 'click', + /** + * @event activate + * Fires when this item is activated + * @param {Ext.menu.BaseItem} this + */ + 'activate', + /** + * @event deactivate + * Fires when this item is deactivated + * @param {Ext.menu.BaseItem} this + */ + 'deactivate' + ); + if(this.handler){ + this.on("click", this.handler, this.scope); + } }, // private @@ -165,6 +171,6 @@ Ext.menu.BaseItem = Ext.extend(Ext.Component, { // private. Do nothing hideMenu : Ext.emptyFn }); -Ext.reg('menubaseitem', Ext.menu.BaseItem);- +Ext.reg('menubaseitem', Ext.menu.BaseItem);