Skip to content

Instantly share code, notes, and snippets.

@catkins
Created November 16, 2014 05:31
Show Gist options
  • Save catkins/25514b854248dca3b02f to your computer and use it in GitHub Desktop.
Save catkins/25514b854248dca3b02f to your computer and use it in GitHub Desktop.
unknownProperty: function(key) {
var namespacedKey = this._key(key);
var payload = this.get('persistence').getItem(namespacedKey);
return this._deserialize(payload);
},
_deserialize: function(value) {
return JSON.parse(value);
},
_key: function(key) {
return "%@:%@".fmt(this.get('namespace'), key);
},
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment