mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
20 lines
321 B
CoffeeScript
20 lines
321 B
CoffeeScript
# test
|
|
f1: (x) ->
|
|
x * x
|
|
f2: (y) ->
|
|
y * x
|
|
f3: 3
|
|
|
|
# Parens can close on the proper level.
|
|
elements.each((el) ->
|
|
el.click((event) ->
|
|
el.reset()
|
|
el.show() if event.active
|
|
)
|
|
)
|
|
|
|
# Or, parens can close blocks early.
|
|
elements.each((el) ->
|
|
el.click((event) ->
|
|
el.reset()
|
|
el.show() if event.active)) |