Created
April 12, 2011 23:53
-
-
Save ColinCampbell/916697 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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