Skip to content

Instantly share code, notes, and snippets.

@firedev
Created May 23, 2015 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firedev/528140a8b44ce5c111e6 to your computer and use it in GitHub Desktop.
Save firedev/528140a8b44ce5c111e6 to your computer and use it in GitHub Desktop.
Better months
months:
['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
render: ->
DOM.select
onChange: @onMonthChange
value: @props.date.getMonth()
DOM.option(
value: i, key: i, @months[i]
) for i in [0..(@months.length-1)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment