Skip to content

Commit

Permalink
Add @OverRide, remove @attribute/@group/@hero/@homepage (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Jun 19, 2019
1 parent a113f34 commit 479cbf2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iron-localstorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 479cbf2

Please sign in to comment.