git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git]
/
src
/
widgets
/
CycleButton.js
diff --git
a/src/widgets/CycleButton.js
b/src/widgets/CycleButton.js
index
8eb89d1
..
a57bdfd
100644
(file)
--- a/
src/widgets/CycleButton.js
+++ b/
src/widgets/CycleButton.js
@@
-1,6
+1,6
@@
/*!
/*!
- * Ext JS Library 3.
0.3
- * Copyright(c) 2006-20
09
Ext JS, LLC
+ * Ext JS Library 3.
1.1
+ * Copyright(c) 2006-20
10
Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
* licensing@extjs.com
* http://www.extjs.com/license
*/
@@
-97,7
+97,7
@@
Ext.CycleButton = Ext.extend(Ext.SplitButton, {
}
\r
this.activeItem = item;
\r
if(!item.checked){
\r
}
\r
this.activeItem = item;
\r
if(!item.checked){
\r
- item.setChecked(true,
tru
e);
\r
+ item.setChecked(true,
fals
e);
\r
}
\r
if(this.forceIcon){
\r
this.setIconClass(this.forceIcon);
\r
}
\r
if(this.forceIcon){
\r
this.setIconClass(this.forceIcon);
\r
@@
-138,7
+138,7
@@
Ext.CycleButton = Ext.extend(Ext.SplitButton, {
this.itemCount = this.items.length;
\r
\r
this.menu = {cls:'x-cycle-menu', items:[]};
\r
this.itemCount = this.items.length;
\r
\r
this.menu = {cls:'x-cycle-menu', items:[]};
\r
- var checked;
\r
+ var checked
= 0
;
\r
Ext.each(this.items, function(item, i){
\r
Ext.apply(item, {
\r
group: item.group || this.id,
\r
Ext.each(this.items, function(item, i){
\r
Ext.apply(item, {
\r
group: item.group || this.id,
\r
@@
-149,13
+149,12
@@
Ext.CycleButton = Ext.extend(Ext.SplitButton, {
});
\r
this.menu.items.push(item);
\r
if(item.checked){
\r
});
\r
this.menu.items.push(item);
\r
if(item.checked){
\r
- checked = i
tem
;
\r
+ checked = i;
\r
}
\r
}, this);
\r
}
\r
}, this);
\r
- this.setActiveItem(checked, true);
\r
Ext.CycleButton.superclass.initComponent.call(this);
\r
Ext.CycleButton.superclass.initComponent.call(this);
\r
-
\r
this.on('click', this.toggleSelected, this);
\r
this.on('click', this.toggleSelected, this);
\r
+ this.setActiveItem(checked, true);
\r
},
\r
\r
// private
\r
},
\r
\r
// private
\r