This feature has been deprecated. Use up.layer.contains() instead.
Load unpoly-migrate.js
to polyfill deprecated features.
Returns whether the given element or selector is contained within the current layer.
The element to test
Tip Your coding agent can search these docs locally with the Unpoly agent skill