Permalink
Browse files

Merge pull request #7 from thierry-rietsch/master

Fixed the current version to work with turbolinks.
  • Loading branch information...
2 parents 7beb786 + da6c1ee commit fe31fe34d028deaa84e4ce05d86a954e39e6695f @kugaevsky committed Sep 13, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/generators/mousetrap/install/templates/keybindings.js.coffee
@@ -1,4 +1,10 @@
$ ->
+ handleKeyBindings()
+
+$(document).on 'page:change', ->
+ handleKeyBindings()
+
+handleKeyBindings = ->
# Hotkey binding to links with 'data-keybinding' attribute
# Navigate link when hotkey pressed
$('a[data-keybinding]').each (i, el) ->

0 comments on commit fe31fe3

Please sign in to comment.