From 479cbf2f1ccd660db51c5179a0b32269bbf15837 Mon Sep 17 00:00:00 2001 From: Alexander Marks Date: Tue, 18 Jun 2019 18:10:27 -0700 Subject: [PATCH] Add @override, remove @attribute/@group/@hero/@homepage (#69) --- iron-localstorage.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iron-localstorage.js b/iron-localstorage.js index 11b7476..0af2d35 100644 --- a/iron-localstorage.js +++ b/iron-localstorage.js @@ -134,16 +134,20 @@ Polymer({ '_trySaveValue(value.*)', ], + /** @override */ _template: null, + /** @override */ ready: function() { this._boundHandleStorage = this._handleStorage.bind(this); }, + /** @override */ attached: function() { window.addEventListener('storage', this._boundHandleStorage); }, + /** @override */ detached: function() { window.removeEventListener('storage', this._boundHandleStorage); }, @@ -227,6 +231,7 @@ Polymer({ /** * Saves the value to localStorage. Call to save if autoSaveDisabled is set. * If `value` is null or undefined, deletes localStorage. + * @override */ save: function() { var v = this.useRaw ? this.value : JSON.stringify(this.value);