 events = (type) ->
   $el = $ this
 
-  if preventDefault
+  if preventDefaultClick
     $el[type] 'click', (e) ->
       e.preventDefault()
 

  if e.type.match 'touchstart|touchmove|touchend'
    lastTouched = currentTimestamp

  if secondsSinceTouch < 3 and e.type.match 'mouse'
    true
  else
    false

getTouchclickEl = (target) ->
  $targetEl = $ target

$ = if typeof jQuery is 'function' then jQuery else require 'jquery'

activeClass = 'touchactive'
preventDefaultClick = true

# Store a timestamp of when the last touch event occurred
lastTouched = 0
