nl_tokens: / * ---------------------------------------------------------------------------------------------------------------- Currently iterates through all nodes in the range on creation until I think of a decent way to do it TODO : Look into making this a proper iterator not requiring preloading everything first
pl_tokens: function RangeNodeIterator ( range , nodeTypes , filter ) { this . nodes = getNodesInRange ( <mask> , nodeTypes , filter ) ; this . _next = this . nodes [ 0 ] ; this . _position = 0 ; }