Skip to content

Commit

Permalink
Fix storage update
Browse files Browse the repository at this point in the history
  • Loading branch information
garcus committed Jun 6, 2016
1 parent ed3c8e8 commit cf69a4e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app-localstorage/app-localstorage-document.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,13 @@
},

__onAppLocalStorageChanged: function(event) {
if (event.detail === this) {
return;
}
if (event.detail.key !== this.key ||
event.detail.storage !== this.storage) {
return;
}
//if (event.detail === this) {
// return;
//}

this.syncToMemory(function() {
this.set('data', event.detail.data);
Expand Down

0 comments on commit cf69a4e

Please sign in to comment.