up.layer.contains(element)
JavaScript function
Returns whether the given element is contained by the current layer.
This is a shortcut for up.layer.current.contains(element).
See up.Layer#contains for more documentation.
Parameters
element
Return value
Whether the layer contains the element.
Type: boolean