X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/docs/source/CycleButton.html diff --git a/docs/source/CycleButton.html b/docs/source/CycleButton.html index 7abc37f2..1b14352c 100644 --- a/docs/source/CycleButton.html +++ b/docs/source/CycleButton.html @@ -1,17 +1,12 @@ - - - The source code - - - - -
/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-
/** + + + + The source code + + + + +
/** * @class Ext.CycleButton * @extends Ext.SplitButton * A specialized SplitButton that contains a menu of {@link Ext.menu.CheckItem} elements. The button automatically @@ -104,7 +99,7 @@ Ext.CycleButton = Ext.extend(Ext.SplitButton, { } this.activeItem = item; if(!item.checked){ - item.setChecked(true, true); + item.setChecked(true, false); } if(this.forceIcon){ this.setIconClass(this.forceIcon); @@ -145,7 +140,7 @@ Ext.CycleButton = Ext.extend(Ext.SplitButton, { this.itemCount = this.items.length; this.menu = {cls:'x-cycle-menu', items:[]}; - var checked; + var checked = 0; Ext.each(this.items, function(item, i){ Ext.apply(item, { group: item.group || this.id, @@ -156,13 +151,12 @@ Ext.CycleButton = Ext.extend(Ext.SplitButton, { }); this.menu.items.push(item); if(item.checked){ - checked = item; + checked = i; } }, this); - this.setActiveItem(checked, true); Ext.CycleButton.superclass.initComponent.call(this); - this.on('click', this.toggleSelected, this); + this.setActiveItem(checked, true); }, // private @@ -198,6 +192,6 @@ Ext.CycleButton = Ext.extend(Ext.SplitButton, { } } }); -Ext.reg('cycle', Ext.CycleButton);
- +Ext.reg('cycle', Ext.CycleButton);
+ \ No newline at end of file