Closed JasperSurmont closed 1 month ago
Hi,
thanks for the heads up.
the documentation is wrong (a copy and paste error) and I've updated the wiki now.
collection.parents(selector)
is not actually implemented. I can implement it for the next version of jArchi but you can achieve the same result with:
collection.parents().filter(selector)
Thanks for the quick response 😄
That works indeed, thanks.
Version of jArchi, Operating System
Version 1.5, Windows 11
Expected Behaviour
According to the docs, the
collection.parents()
also has an optional selector argument.Actual Behaviour
I get the following error:
Steps to Reproduce the Behaviour (with attached test files/script)
$(<any selector>).parents(<any selector>)
, e.g.$('element').parents('folder')
Example script jarchi-bug.zip