up.popup.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
required
The element to test
Type: string
Return value
Type: boolean