Small comment fixes from code review
This commit is contained in:
@@ -388,7 +388,7 @@
|
||||
// `duration` optionally given as second parameter, is the transition duration in css.
|
||||
// `reason` is the string "next", "prev" or "goto" (default) and will be made available to
|
||||
// preStepLeave plugins.
|
||||
// `origEvent` may contain event that caused the calll to goto, such as a key press event
|
||||
// `origEvent` may contain event that caused the call to goto, such as a key press event
|
||||
var goto = function( el, duration, reason, origEvent ) {
|
||||
reason = reason || "goto";
|
||||
origEvent = origEvent || null;
|
||||
|
||||
@@ -388,7 +388,7 @@
|
||||
// `duration` optionally given as second parameter, is the transition duration in css.
|
||||
// `reason` is the string "next", "prev" or "goto" (default) and will be made available to
|
||||
// preStepLeave plugins.
|
||||
// `origEvent` may contain event that caused the calll to goto, such as a key press event
|
||||
// `origEvent` may contain event that caused the call to goto, such as a key press event
|
||||
var goto = function( el, duration, reason, origEvent ) {
|
||||
reason = reason || "goto";
|
||||
origEvent = origEvent || null;
|
||||
|
||||
@@ -16,6 +16,9 @@ Example:
|
||||
<!-- data-goto-key-list and data-goto-next-list allow you to build advanced non-linear navigation. -->
|
||||
<div class="step" data-goto-key-list="ArrowUp ArrowDown ArrowRight ArrowLeft" data-goto-next-list="step-4 step-3 step-2 step-5">
|
||||
|
||||
See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values for a table
|
||||
of what strings to use for each key.
|
||||
|
||||
Author
|
||||
------
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
* data-goto-key-list="ArrowUp ArrowDown ArrowRight ArrowLeft"
|
||||
* data-goto-next-list="step-4 step-3 step-2 step-5">
|
||||
*
|
||||
* See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values for a table
|
||||
* of what strings to use for each key.
|
||||
*
|
||||
* Copyright 2016-2017 Henrik Ingo (@henrikingo)
|
||||
* Released under the MIT license.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user