Skip to content

Instantly share code, notes, and snippets.

@ColinCampbell
Created October 1, 2010 15:33
Show Gist options
  • Select an option

  • Save ColinCampbell/606354 to your computer and use it in GitHub Desktop.

Select an option

Save ColinCampbell/606354 to your computer and use it in GitHub Desktop.
MyClass = SC.Object.extend({
name: function() {
var name = this.getPath('content.name');
// probably want to do something here
return name;
}.property().cacheable(),
nameWillChange: function() {
this.notifyPropertyChange('name');
}.observes('*content.name')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment