Browse Source
1. tracks add/remove of child nodes and increments/decrements the counter 2. one function is triggered when the counter is deleted and it recounts the child nodes The delta counter in #1 is more efficient than counting all children every time, since it only needs access to the delta. The recounter function in #2 is equally inefficient as before, but is needed a lot less.katowulf-pr-tpl
Frank van Puffelen
8 years ago
2 changed files with 30 additions and 4 deletions
Loading…
Reference in new issue