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  smile

Last edited by junzhang (2009-01-04 02:17:46)

Thumbs up Thumbs down

Re: Error in Method getChecked() (Tree Checkbox)

fixed rev 52 code.google.com

http://mifjs.net/trunk/tree/