X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..refs/tags/3.1.1:/docs/source/CycleButton.html diff --git a/docs/source/CycleButton.html b/docs/source/CycleButton.html index cef6f87d..1b14352c 100644 --- a/docs/source/CycleButton.html +++ b/docs/source/CycleButton.html @@ -99,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); @@ -140,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, @@ -151,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