7 is: 'iron-overlay-backdrop',
12 * Returns true if the backdrop is opened.
16 reflectToAttribute: true,
23 value: Polymer.IronOverlayManager
29 * Appends the backdrop to document body and sets its `z-index` to be below the latest overlay.
32 if (!this.parentNode) {
33 Polymer.dom(document.body).appendChild(this);
34 this.style.zIndex = this._manager.currentOverlayZ() - 1;
39 * Shows the backdrop if needed.
42 // only need to make the backdrop visible if this is called by the first overlay with a backdrop
43 if (this._manager.getBackdrops().length < 2) {
44 this._setOpened(true);
49 * Hides the backdrop if needed.
52 // only need to make the backdrop invisible if this is called by the last overlay with a backdrop
53 if (this._manager.getBackdrops().length < 2) {
54 this._setOpened(false);
59 * Removes the backdrop from document body if needed.
61 complete: function() {
62 // only remove the backdrop if there are no more overlays with backdrops
63 if (this._manager.getBackdrops().length === 0 && this.parentNode) {
64 Polymer.dom(this.parentNode).removeChild(this);