• Martijn Pieters's avatar
    New method setStateFunction for TreeMaker. · 4c615b75
    Martijn Pieters authored
    - Refactor tree method to allow callback function (set with
      setStateFunction) to influence node state.
    
    - hasChildren now stores the result of getChildren in a local cache, which
      getChildren uses and clears on a subsequent call. This was needed to avoid
      generating the children list for open nodes twice.
    
    - hasChildren now flattens its return value to a boolean; tree relies on
      this.
    4c615b75
testTree.py 6.95 KB