[Dojo-interest] Finding a matching ancestor
michael at schuerig.de
Fri Apr 24 14:21:43 EDT 2009
On Wednesday 22 April 2009, Peter E Higgins wrote:
> I've been meaning to put this kind of snippet in plugd under
> dojo.NodeList.parents(".someSelector") ... Your code is almost
> exactly the same as has been roughly implemented in a couple of
> places (in #dojo I know for certain), I just cannot bring myself to
> condone the potential perf hit here. With some unit tests, and a CLA
> in place, I would be happy to implement your ancestor function
> somewhere (plugd seems most appripriate, a whole dojox/ project for a
> nodelist extension seems excessive)
Just dojo.ancestor, not a nodelist extension.
CLA follows as soon as I get my scanner to work.
mailto:michael at schuerig.de
More information about the Dojo-interest