valeriogalano/checkboxtree

Recursion performance issue

Closed this issue · 2 comments

We found out the recursion on the checkIfFull was somehow slow.
We've changed your code to get the recursion really faster :

if (options.onCheck.ancestors == 'checkIfFull') {
    if (allDescendantChecked(li)  && !li.parents('ul:first').hasClass("checkboxTree")) {
        check(parentNode(li, options), options);
    }
}

Have a nice day !

Original issue reported on code.google.com by Matthieu...@gmail.com on 24 Feb 2011 at 10:14

Thanks Matthieu,
I'll insert your enhancement!

Regards

Original comment by valerio....@gmail.com on 24 Feb 2011 at 10:19

  • Changed state: Accepted
  • Added labels: Type-Enhancement, Performance, Milestone-Release0.5
  • Removed labels: Type-Defect

Original comment by valerio....@gmail.com on 1 Mar 2011 at 11:52

  • Changed state: Fixed