Skip to content

Instantly share code, notes, and snippets.

@catkins
Last active August 29, 2015 14:09
Show Gist options
  • Save catkins/fb5a13475c786bbe27cd to your computer and use it in GitHub Desktop.
Save catkins/fb5a13475c786bbe27cd to your computer and use it in GitHub Desktop.
setUnknownProperty: function(key, value) {
var namespacedKey = this._key(key);
var payload = this._serialize(value);
this.get('persistence').setItem(namespacedKey, payload);
this.notifyPropertyChange(key);
return true;
},
_serialize: function(value) {
return JSON.stringify(value);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment