     hammer.on 'swipeleft', => @goTo 'previous'
 
   goTo: (prevNext) ->
-    console?.log 'goTo', prevNext
     href = @picture[prevNext]()
-    console?.log 'href', href
     if href
       page href
       false


    original = theOtherMediaHelper.getOriginal picture
    ko.mapping.fromJS original, {}, @original

$ ->
  # TODO encapsulate this $('#picture .prev-link:visible').click hackery!
  hammer = $('#picture').hammer()
  hammer.on 'swiperight', -> $('#picture .prev-link:visible').click()
  hammer.on 'swipeleft', -> $('#picture .next-link:visible').click()


    @setupGestures()

  setupKeyBindings: ->
    $(document).keydown @onKeyDown

  onKeyDown: (event) =>
    return true if event.altKey or event.ctrlKey or event.metaKey

    if event.keyCode in NEXT_PICTURE_KEYCODES
