| OLD | NEW |
| 1 /** | 1 /** |
| 2 * @struct | 2 * @struct |
| 3 * @constructor | 3 * @constructor |
| 4 * @private | 4 * @private |
| 5 */ | 5 */ |
| 6 Polymer.IronOverlayManagerClass = function() { | 6 Polymer.IronOverlayManagerClass = function() { |
| 7 /** | 7 /** |
| 8 * Used to keep track of the opened overlays. | 8 * Used to keep track of the opened overlays. |
| 9 * @private {Array<Element>} | 9 * @private {Array<Element>} |
| 10 */ | 10 */ |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 } | 305 } |
| 306 // Use logical parentNode, or native ShadowRoot host. | 306 // Use logical parentNode, or native ShadowRoot host. |
| 307 node = Polymer.dom(node).parentNode || node.host; | 307 node = Polymer.dom(node).parentNode || node.host; |
| 308 } | 308 } |
| 309 }, | 309 }, |
| 310 | 310 |
| 311 /** | 311 /** |
| 312 * Returns the deepest overlay in the path. | 312 * Returns the deepest overlay in the path. |
| 313 * @param {Array<Element>=} path | 313 * @param {Array<Element>=} path |
| 314 * @return {Element|undefined} | 314 * @return {Element|undefined} |
| 315 * @suppress {missingProperties} | |
| 316 * @private | 315 * @private |
| 317 */ | 316 */ |
| 318 _overlayInPath: function(path) { | 317 _overlayInPath: function(path) { |
| 319 path = path || []; | 318 path = path || []; |
| 320 for (var i = 0; i < path.length; i++) { | 319 for (var i = 0; i < path.length; i++) { |
| 321 if (path[i]._manager === this) { | 320 if (path[i]._manager === this) { |
| 322 return path[i]; | 321 return path[i]; |
| 323 } | 322 } |
| 324 } | 323 } |
| 325 }, | 324 }, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 overlay._onCaptureTab(event); | 362 overlay._onCaptureTab(event); |
| 364 } | 363 } |
| 365 } | 364 } |
| 366 }, | 365 }, |
| 367 | 366 |
| 368 /** | 367 /** |
| 369 * Returns if the overlay1 should be behind overlay2. | 368 * Returns if the overlay1 should be behind overlay2. |
| 370 * @param {!Element} overlay1 | 369 * @param {!Element} overlay1 |
| 371 * @param {!Element} overlay2 | 370 * @param {!Element} overlay2 |
| 372 * @return {boolean} | 371 * @return {boolean} |
| 373 * @suppress {missingProperties} | |
| 374 * @private | 372 * @private |
| 375 */ | 373 */ |
| 376 _shouldBeBehindOverlay: function(overlay1, overlay2) { | 374 _shouldBeBehindOverlay: function(overlay1, overlay2) { |
| 377 return !overlay1.alwaysOnTop && overlay2.alwaysOnTop; | 375 var o1 = /** @type {?} */ (overlay1); |
| 376 var o2 = /** @type {?} */ (overlay2); |
| 377 return !o1.alwaysOnTop && o2.alwaysOnTop; |
| 378 } | 378 } |
| 379 }; | 379 }; |
| 380 | 380 |
| 381 Polymer.IronOverlayManager = new Polymer.IronOverlayManagerClass(); | 381 Polymer.IronOverlayManager = new Polymer.IronOverlayManagerClass(); |
| OLD | NEW |