Skip to content

Instantly share code, notes, and snippets.

@ColinCampbell
Created April 12, 2011 23:53
Show Gist options
  • Save ColinCampbell/916697 to your computer and use it in GitHub Desktop.
Save ColinCampbell/916697 to your computer and use it in GitHub Desktop.
// the way it was:
MyApp.Record = SC.Record.extend({
//..
});
MyApp.Record.isPolymorhic = YES;
// versus what it could be:
MyApp.Record = SC.Record.extend({
// SC.Record has some magic sauce to take this out
// and apply it to itself, rather than its .prototype
isPolymorphic: YES
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment