Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created June 2, 2010 19:53
Show Gist options
  • Save joegaudet/422891 to your computer and use it in GitHub Desktop.
Save joegaudet/422891 to your computer and use it in GitHub Desktop.
MyApp.MyObject = SC.Object.extend({
property: value;
computedProperty: function(){
return value === "foo";
}.observes('value').property(),
setProperty: function(value){
this.set('value',value);
}
});
MyApp.someObject = SC.Object.create({
object: MyApp.MyObject.create(),
iShouldFire: function(){
console.log('I should fire');
}.observes('.object.computedProperty')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment