+ if (!nosave)
+ this.savePreferences();
+ if (!nonotify)
+ this.preferencesChanged();
+ },
+ savePreferences: function() {
+ try {
+ localStorage['hacks/' + this.kind] = JSON.stringify(this.getPreferences());
+ } catch(e) {
+ enyo.log("Could not save prefs: " + e.toString());
+ }
+ },
+ resetPreferences: function() {
+ delete localStorage['hacks/' + this.kind];