---
name: "up.Layer.prototype.isOpen"
area: "API"
kind: "Instance method"
parent: "up.Layer class"
visibility: "deprecated"
url: "https://unpoly.com/api/up.Layer.prototype.isOpen"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Layer class](https://unpoly.com/api/up.Layer.md)</nav>

# up.Layer.prototype.isOpen()

**This feature has been deprecated**. Use [`up.Layer#isAlive()`](https://unpoly.com/api/up.Layer.prototype.isAlive.md) instead.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated features.

Returns whether this layer is still part of the [layer stack](https://unpoly.com/api/up.layer.stack.md).

A layer is considered "closed" immediately after it has been [dismissed](https://unpoly.com/api/up.Layer.prototype.dismiss.md) or [accepted](https://unpoly.com/api/up.Layer.prototype.accept.md). If the closing is animated, a layer may be considered "closed" while the closing animation is still playing.

---

## Return value {#return-value}

Whether this layer is still open.

Type: boolean

