Optional
parent: anyOptional
segment: stringOptional
parentOptional
segmentAdd a listener to a path location. Listener should be unique per path location, and calling twice with the same segments and listener value has no effect. Unlike EventEmitter, listener may be any type of value
Return an array with each of the listeners that may be affected by a change
to segments
. These are:
segments
segments
listeners
Return an array with each of the listeners to descendent nodes, not
including listeners to segments
itself
listeners
Return direct listeners to segments
listeners
Return an array with each of the listeners to segments
, including
treating wildcard segments ('*') and remainder segments ('**') as matches
listeners
Remove all listeners and descendent listeners for a path location
Remove a listener from a path location
Construct a tree root when invoked without any arguments. Children nodes are constructred internally as needed on calls to addListener()
Param: parent
Param: segment