Created
May 23, 2015 08:55
-
-
Save firedev/528140a8b44ce5c111e6 to your computer and use it in GitHub Desktop.
Better months
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
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