From 788803caa1345c476a63b030f3abaff3ed7b6072 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Tue, 21 Aug 2018 17:02:11 +0200 Subject: [PATCH] Anonymous callback function --- content/assets/scripts/message.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/assets/scripts/message.coffee b/content/assets/scripts/message.coffee index 83b4eda..b49ddeb 100644 --- a/content/assets/scripts/message.coffee +++ b/content/assets/scripts/message.coffee @@ -6,5 +6,5 @@ $ '.send' contentType: "text/plain", type: "POST" data: $('.chatbox').val() - success: _ -> $('#chat-response').text('Success! :)') - error: _ -> $('#chat-response').text('Error !1!') + success: -> $('#chat-response').text('Success! :)') + error: -> $('#chat-response').text('Error !1!')