Remove trailing whitespace from tracks coffee file

This commit is contained in:
Bertocq
2017-06-16 00:02:06 +02:00
parent 6eb2647c1c
commit 2c4139d4ac

View File

@@ -1,13 +1,13 @@
App.Tracks = App.Tracks =
tracking_enabled: -> tracking_enabled: ->
_paq? _paq?
set_custom_var: (id, name, value, scope) -> set_custom_var: (id, name, value, scope) ->
_paq.push(['setCustomVariable', id, name, value, scope]) _paq.push(['setCustomVariable', id, name, value, scope])
_paq.push(['trackPageView']) _paq.push(['trackPageView'])
track_event: ($this) -> track_event: ($this) ->
category = $this.data('track-event-category') category = $this.data('track-event-category')
action = $this.data('track-event-action') action = $this.data('track-event-action')
_paq.push(['trackEvent', category, action]) _paq.push(['trackEvent', category, action])
@@ -17,9 +17,9 @@ App.Tracks =
$('[data-track-usertype]').each -> $('[data-track-usertype]').each ->
$this = $(this) $this = $(this)
usertype = $this.data('track-usertype') 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) $this = $(this)
App.Tracks.track_event($this) App.Tracks.track_event($this)