Edit this page

up.layer up.modal.contains(elementOrSelector)
JavaScript function

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.


Parameters

elementOrSelector string

The element to test

Return value

boolean