Show More
Commit Description:
add golden submit button...
Commit Description:
add golden submit button - When the user submit more than or equal to 100 times the submit button will turn gold - Add golden-btn tag in applications.css.scss
File last commit:
Show/Diff file:
Action:
node_modules/restructure/src/Enum.coffee | 17 lines | 363 B | text/coffeescript | CoffeeScriptLexer |
class Enum
constructor: (@type, @options = []) ->
decode: (stream) ->
index = @type.decode(stream)
return @options[index] or index
size: ->
@type.size()
encode: (stream, val) ->
index = @options.indexOf val
if index is -1
throw new Error "Unknown option in enum: #{val}"
@type.encode(stream, index)
module.exports = Enum