Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Unified Diff: polymer_0.5.0/bower_components/core-localstorage/core-localstorage.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: polymer_0.5.0/bower_components/core-localstorage/core-localstorage.html
diff --git a/bower_components/core-localstorage/core-localstorage.html b/polymer_0.5.0/bower_components/core-localstorage/core-localstorage.html
similarity index 97%
rename from bower_components/core-localstorage/core-localstorage.html
rename to polymer_0.5.0/bower_components/core-localstorage/core-localstorage.html
index 3bd697bb777f210f31d2ddcb727a3f9c427546f9..e06c00864089bcba13da75c02c6f96c9cf043e4a 100644
--- a/bower_components/core-localstorage/core-localstorage.html
+++ b/polymer_0.5.0/bower_components/core-localstorage/core-localstorage.html
@@ -72,16 +72,15 @@ triggered only when value is a different instance.
*/
autoSaveDisabled: false,
- attached: function() {
- // wait for bindings are all setup
- this.async('load');
- },
-
valueChanged: function() {
if (this.loaded && !this.autoSaveDisabled) {
this.save();
}
},
+
+ nameChanged: function() {
+ this.load();
+ },
load: function() {
var v = localStorage.getItem(this.name);

Powered by Google App Engine
This is Rietveld 408576698