From b213ae689b4f8684133a5e4337f1a4fa398f4f42 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 9 Jan 2017 14:18:11 +0100 Subject: [PATCH] Fixed coffeelint. --- .../javascripts/app/controllers/ticket_overview.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/ticket_overview.coffee b/app/assets/javascripts/app/controllers/ticket_overview.coffee index 670ab5934..19d6e66fb 100644 --- a/app/assets/javascripts/app/controllers/ticket_overview.coffee +++ b/app/assets/javascripts/app/controllers/ticket_overview.coffee @@ -71,7 +71,7 @@ class App.TicketOverview extends App.Controller $('#app').append @batchDragger - @draggedItems.each (i, item) => + @draggedItems.each (i, item) -> dx = $(item).data('offset').left - $(item).offset().left - x dy = $(item).data('offset').top - $(item).offset().top - y $.Velocity.hook item, 'translateX', "#{dx}px" @@ -103,8 +103,8 @@ class App.TicketOverview extends App.Controller scale: 1.1 options: duration: 200 - complete: => - @hoveredBatchEntry.velocity "reverse", + complete: -> + @hoveredBatchEntry.velocity 'reverse', duration: 200 complete: => # clean scale