diff 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
line wrap: on
line diff
--- a/app/assets/javascripts/new_paste.coffee	Sun Jun 07 02:57:41 2015 +0900
+++ b/app/assets/javascripts/new_paste.coffee	Sun Jun 07 02:59:29 2015 +0900
@@ -1,4 +1,5 @@
 $(document).on "click", "#reset_paste", (e) ->
   e.preventDefault()
-  $form = $("#paste_paste")
-  $form.val("").focus()
+  $("#paste_paste")
+    .val("")
+    .focus()