From 2c4139d4ac25911ec8335980d81ebec25b2ade6b Mon Sep 17 00:00:00 2001 From: Bertocq Date: Fri, 16 Jun 2017 00:02:06 +0200 Subject: [PATCH] Remove trailing whitespace from tracks coffee file --- app/assets/javascripts/tracks.js.coffee | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/tracks.js.coffee b/app/assets/javascripts/tracks.js.coffee index 1b6cfe82e..74fc305e8 100644 --- a/app/assets/javascripts/tracks.js.coffee +++ b/app/assets/javascripts/tracks.js.coffee @@ -1,13 +1,13 @@ App.Tracks = - - tracking_enabled: -> + + tracking_enabled: -> _paq? - set_custom_var: (id, name, value, scope) -> + set_custom_var: (id, name, value, scope) -> _paq.push(['setCustomVariable', id, name, value, scope]) _paq.push(['trackPageView']) - track_event: ($this) -> + track_event: ($this) -> category = $this.data('track-event-category') action = $this.data('track-event-action') _paq.push(['trackEvent', category, action]) @@ -17,9 +17,9 @@ App.Tracks = $('[data-track-usertype]').each -> $this = $(this) usertype = $this.data('track-usertype') - App.Tracks.set_custom_var(1, "usertype", usertype, "visit") + App.Tracks.set_custom_var(1, "usertype", usertype, "visit") - $('[data-track-event-category]').each -> + $('[data-track-event-category]').each -> $this = $(this) App.Tracks.track_event($this)