Guest User

Untitled

a guest
Jun 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1.  
  2. MyClass = SC.Object.extend({
  3.  
  4. name: function() {
  5. var name = this.getPath('content.name');
  6. // probably want to do something here
  7. return name;
  8. }.property().cacheable(),
  9.  
  10. nameWillChange: function() {
  11. this.notifyPropertyChange('name');
  12. }.observes('*content.name')
  13.  
  14. });
Add Comment
Please, Sign In to add comment