5 is
: 'iron-overlay-backdrop',
10 * Returns true if the backdrop is opened.
14 reflectToAttribute
: true,
21 value
: Polymer
.IronOverlayManager
27 * Appends the backdrop to document body and sets its `z-index` to be below the latest overlay.
30 if (!this.parentNode
) {
31 Polymer
.dom(document
.body
).appendChild(this);
32 this.style
.zIndex
= this._manager
.currentOverlayZ() - 1;
37 * Shows the backdrop if needed.
40 // only need to make the backdrop visible if this is called by the first overlay with a backdrop
41 if (this._manager
.getBackdrops().length
< 2) {
42 this._setOpened(true);
47 * Hides the backdrop if needed.
50 // only need to make the backdrop invisible if this is called by the last overlay with a backdrop
51 if (this._manager
.getBackdrops().length
< 2) {
52 this._setOpened(false);
57 * Removes the backdrop from document body if needed.
59 complete: function() {
60 // only remove the backdrop if there are no more overlays with backdrops
61 if (this._manager
.getBackdrops().length
=== 0 && this.parentNode
) {
62 Polymer
.dom(this.parentNode
).removeChild(this);