]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Fix joyride error 5818/head
authorDimitri Jorge <jorge.dimitri@gmail.com>
Tue, 16 Sep 2014 17:36:04 +0000 (19:36 +0200)
committerDimitri Jorge <jorge.dimitri@gmail.com>
Tue, 16 Sep 2014 17:36:04 +0000 (19:36 +0200)
commit7ad937937a2a7725759bec7832b1b4247f153947
treee13b3770d53609f762c48aa884a01578bf03bd98
parent597daac6dab92217ec3da87bd6abc3824379a2c1
Fix joyride error

When the joyride is included on the page but hasn't been started yet,
the keystrokes events are still catched and we end up with a JS error
on `go_next` or `go_prev` functions.
This fix checks that the joyride is on screen before calling theses callbacks.
js/foundation/foundation.joyride.js