Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
即時関数で小さなスコープの変数を作成するサンプルコード
((t) ->
$('.elem:last > .del', t).on 'click', ->
@parent().remove()
$('.elem > .edit', t).on 'click', ->
$('.elem', t).css(opacity: 0.5)
@parent().css(opacity: 1.0).find('textarea').show()
) $('.maincontent .tab.user .user-list')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.