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.
|
// `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
|
// `reason` is the string "next", "prev" or "goto" (default) and will be made available to
|
||||||
// preStepLeave plugins.
|
// 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 ) {
|
var goto = function( el, duration, reason, origEvent ) {
|
||||||
reason = reason || "goto";
|
reason = reason || "goto";
|
||||||
origEvent = origEvent || null;
|
origEvent = origEvent || null;
|
||||||
|
|||||||
@@ -388,7 +388,7 @@
|
|||||||
// `duration` optionally given as second parameter, is the transition duration in css.
|
// `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
|
// `reason` is the string "next", "prev" or "goto" (default) and will be made available to
|
||||||
// preStepLeave plugins.
|
// 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 ) {
|
var goto = function( el, duration, reason, origEvent ) {
|
||||||
reason = reason || "goto";
|
reason = reason || "goto";
|
||||||
origEvent = origEvent || null;
|
origEvent = origEvent || null;
|
||||||
|
|||||||
@@ -16,7 +16,10 @@ Example:
|
|||||||
<!-- data-goto-key-list and data-goto-next-list allow you to build advanced non-linear navigation. -->
|
<!-- 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">
|
<div class="step" data-goto-key-list="ArrowUp ArrowDown ArrowRight ArrowLeft" data-goto-next-list="step-4 step-3 step-2 step-5">
|
||||||
|
|
||||||
Author
|
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
|
||||||
------
|
------
|
||||||
|
|
||||||
Copyright 2016 Henrik Ingo (@henrikingo)
|
Copyright 2016 Henrik Ingo (@henrikingo)
|
||||||
|
|||||||
@@ -20,6 +20,9 @@
|
|||||||
* data-goto-key-list="ArrowUp ArrowDown ArrowRight ArrowLeft"
|
* data-goto-key-list="ArrowUp ArrowDown ArrowRight ArrowLeft"
|
||||||
* data-goto-next-list="step-4 step-3 step-2 step-5">
|
* 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)
|
* Copyright 2016-2017 Henrik Ingo (@henrikingo)
|
||||||
* Released under the MIT license.
|
* Released under the MIT license.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user