Enyo Tut Part 1
auto generated getter/setters, creating kinds
by gorillawit
CoffeeScript
enyo.kind
name: "HelloMoDev"
published:
###puplished auto-created getter setter functions
and creates a function that will be called if the value changes###
greeting: "Hello from Published"
content: "Hello!"
### Pass in the old value of greeting ###
greetingChanged: (oldValue) ->
@setContent(@greeting)
test = new HelloMoDev().renderInto document.body
test.setGreeting "This value changed the greeting value so the greetingChanged function would be appropritally called because it is listening for it's value to be changed"