DOMTraverse::parentBy*() now supports limiting the chain
authorAlexander Ebert <ebert@woltlab.com>
Tue, 7 Jul 2015 20:56:11 +0000 (22:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 7 Jul 2015 20:56:11 +0000 (22:56 +0200)
commita76a4654ed559f42ca8f600240606ebcd94c90a1
tree603c0f1834eee6d8759c218184287275f7174358
parentfd75293659e5eee74d6295ce69a369662e31b6c0
DOMTraverse::parentBy*() now supports limiting the chain

Passing the 3rd parameter will terminate the traversal if current element equals the given element, similar to the behavior of jQuery's `.closest()`
wcfsetup/install/files/js/WoltLab/WCF/DOM/Traverse.js