Skip to content

Instantly share code, notes, and snippets.

@pzuraq
Created December 11, 2014 22:58
Show Gist options
  • Save pzuraq/915a9bef0d3ae3cdbfdf to your computer and use it in GitHub Desktop.
Save pzuraq/915a9bef0d3ae3cdbfdf to your computer and use it in GitHub Desktop.
Ember.ObservableObjectProxy = Ember.Object.extend({
init: function() {
this._super();
Ember.defineProperty(this, 'properties');
this.set('properties', {});
},
unknownProperty: function(property) {
return this.get('properties.'+property);
},
setUnknownProperty: function(property, value) {
this.set('properties.'+property, value);
this.notifyPropertyChange('@each');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment