| OLD | NEW |
| (Empty) | |
| 1 /** |
| 2 * @fileoverview Externs for webcomponents polyfills |
| 3 * @externs |
| 4 */ |
| 5 |
| 6 let HTMLImports = { |
| 7 /** |
| 8 * @param {function()} callback |
| 9 */ |
| 10 whenReady(callback){} |
| 11 }; |
| 12 |
| 13 window.HTMLImports = HTMLImports; |
| 14 |
| 15 let ShadyDOM = { |
| 16 inUse: false, |
| 17 flush(){}, |
| 18 /** |
| 19 * @param {!Node} target |
| 20 * @param {function(Array<MutationRecord>, MutationObserver)} callback |
| 21 * @return {MutationObserver} |
| 22 */ |
| 23 observeChildren(target, callback){}, |
| 24 /** |
| 25 * @param {MutationObserver} observer |
| 26 */ |
| 27 unobserveChildren(observer){}, |
| 28 /** |
| 29 * @param {Node} node |
| 30 */ |
| 31 patch(node){} |
| 32 }; |
| 33 |
| 34 window.ShadyDOM = ShadyDOM; |
| 35 |
| 36 let WebComponents = {}; |
| 37 window.WebComponents = WebComponents; |
| 38 |
| 39 /** @type {Element} */ |
| 40 HTMLElement.prototype._activeElement; |
| 41 |
| 42 /** |
| 43 * @param {HTMLTemplateElement} template |
| 44 */ |
| 45 HTMLTemplateElement.prototype.decorate = function(template){}; |
| OLD | NEW |