Skip to content

Instantly share code, notes, and snippets.

@Metajake
Created January 1, 2016 03:17
Show Gist options
  • Save Metajake/69d1e3b257d9fe11188e to your computer and use it in GitHub Desktop.
Save Metajake/69d1e3b257d9fe11188e to your computer and use it in GitHub Desktop.
meteor lib file. attempting to use https://atmospherejs.com/oaf/reactive-class
@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