Topic: Error in Method getChecked() (Tree Checkbox)
I think there is an error in the following method:
getChecked: function(){
var checked=[];
this.root.recursive(function(){
if(this.hasCheckbox && this.state.checked) checked.push(checked);
});
return checked;
}
The next would be better:
getChecked: function(){
var checked=[];
this.root.recursive(function(){
if(this.hasCheckbox && this.state.checked == 'checked') checked.push(this);
});
return checked;
}
It would be better if somebody check it again ![]()
Last edited by junzhang (2009-01-04 02:17:46)