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]
/
docs
/
source
/
CheckItem.html
diff --git
a/docs/source/CheckItem.html
b/docs/source/CheckItem.html
index
c4026a8
..
7cdb390
100644
(file)
--- a/
docs/source/CheckItem.html
+++ b/
docs/source/CheckItem.html
@@
-95,12
+95,13
@@
Ext.menu.CheckItem = Ext.extend(Ext.menu.Item, {
* @param {Boolean} suppressEvent (optional) True to prevent the checkchange event from firing (defaults to false)
*/
setChecked : function(state, suppressEvent){
* @param {Boolean} suppressEvent (optional) True to prevent the checkchange event from firing (defaults to false)
*/
setChecked : function(state, suppressEvent){
- if(this.checked != state && this.fireEvent("beforecheckchange", this, state) !== false){
+ var suppress = suppressEvent === true;
+ if(this.checked != state && (suppress || this.fireEvent("beforecheckchange", this, state) !== false)){
if(this.container){
this.container[state ? "addClass" : "removeClass"]("x-menu-item-checked");
}
this.checked = state;
if(this.container){
this.container[state ? "addClass" : "removeClass"]("x-menu-item-checked");
}
this.checked = state;
- if(
suppressEvent !== true
){
+ if(
!suppress
){
this.fireEvent("checkchange", this, state);
}
}
this.fireEvent("checkchange", this, state);
}
}