comparison app/assets/javascripts/new_paste.coffee @ 384:7ba798dee39d

No need to assign to variable when it can be just chained.
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 02:59:29 +0900
parents af27800e9a0d
children
comparison
equal deleted inserted replaced
383:af27800e9a0d 384:7ba798dee39d
1 $(document).on "click", "#reset_paste", (e) -> 1 $(document).on "click", "#reset_paste", (e) ->
2 e.preventDefault() 2 e.preventDefault()
3 $form = $("#paste_paste") 3 $("#paste_paste")
4 $form.val("").focus() 4 .val("")
5 .focus()