Created
January 1, 2016 03:17
-
-
Save Metajake/69d1e3b257d9fe11188e to your computer and use it in GitHub Desktop.
meteor lib file. attempting to use https://atmospherejs.com/oaf/reactive-class
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
@Characters = new Mongo.Collection "characters" | |
class @Character extends ReactiveClass(Characters) | |
constructor:(name)-> | |
console.log "I have been created as "+name | |
@.name = name | |
Character.initialize.call(@) | |
getName: ()-> | |
return @.name | |
Character.setupTransform() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment