Edit this page

up.Layer up.Layer.prototype.isAlive()
Instance method

Returns whether this layer is part of the layer stack and can be interacted with.

Understanding aliveness

A layer that is alive can be targeted with fragment changes, or queried for containing elements.

The root layer is always alive. An overlay is alive as soon as it enters the DOM, even when it is still playing its opening animation.

An overlay becomes "unalive" immediately when it starts closing. If the closing is animated, a layer is considered "unalive" while closing animation is still playing.

Overlay state up.Layer#isAlive()
Entered DOM true
Opening animation playing true
Opened true
Closing animation playing false
Removed from DOM false

See also


Return value

Whether this layer is considered alive.

boolean