Closed ThomasBrierley closed 7 years ago
The unbind method only removes target events from the tree, leaving empty nodes in it's path to accumulate. This fix collects the inner nodes and iterates over them in reverse to check for and remove empty nodes after an event is unbound.
Fixes #26 Fixes adobe-webplatform/Snap.svg#369
The unbind method only removes target events from the tree, leaving empty nodes in it's path to accumulate. This fix collects the inner nodes and iterates over them in reverse to check for and remove empty nodes after an event is unbound.
Fixes #26 Fixes adobe-webplatform/Snap.svg#369