From bbaaf72768324079e58fd62807879fc5e74d0478 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Mon, 25 Jun 2018 15:03:25 -0700 Subject: [PATCH] Port Closure Compiler fixes to polymer-externs --- externs/polymer-externs.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/externs/polymer-externs.js b/externs/polymer-externs.js index 0a86620b69..c3b7cdfaaa 100644 --- a/externs/polymer-externs.js +++ b/externs/polymer-externs.js @@ -109,4 +109,15 @@ Polymer.version; * @extends {HTMLElement} * @implements {Polymer_LegacyElementMixin} */ -var PolymerElement = Polymer.LegacyElementMixin(); +var PolymerElement = function() {}; + +/** On create callback. */ +PolymerElement.prototype.created = function() {}; +/** On ready callback. */ +PolymerElement.prototype.ready = function() {}; +/** On registered callback. */ +PolymerElement.prototype.registered = function() {}; +/** On attached to the DOM callback. */ +PolymerElement.prototype.attached = function() {}; +/** On detached from the DOM callback. */ +PolymerElement.prototype.detached = function() {};