up.Layer up.Layer.prototype.contains(element)
Instance method

Returns whether the given element is contained by this layer.

This function will always return false for elements in descendant overlays, even if the descendant overlay's element is nested into the DOM tree of this layer.


Parameters

element
required

The element to test.

Type: Element

Return value

Whether the layer contains the element.

Type: boolean