Skip to content

Commit 7024d32

Browse files
committed
Updated documentation for the loop around value
1 parent 13766fe commit 7024d32

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

html/js/guiutils/KeyTraversal.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ GTE.UI = (function (parentModule) {
1313
}
1414

1515
/**
16-
* Function that switches the current mode key traversal mode
16+
* Function that switches the current key traversal mode
1717
* Valid modes are declared in GTE.KEYMODES
1818
* @param {Number} newMode Key mode to be switched to.
1919
*/
@@ -77,7 +77,7 @@ GTE.UI = (function (parentModule) {
7777
*
7878
* @param {String} name The tag name of the target canvas object.
7979
* @param {SVGAnimatedString} startNode Start object to traverse from
80-
* @param {SVGAnimatedString} resetValue Default start object
80+
* @param {SVGAnimatedString} loopValue Value to hover on after end traversal
8181
* @param {Boolean} isReverse Determines if traversing backwards
8282
* @return {SVGAnimatedString} Returns the next object after traversal.
8383
*/
@@ -113,6 +113,7 @@ GTE.UI = (function (parentModule) {
113113
* @param {String} name The tag name of the SVG object.
114114
* @param {SVGAnimatedString} currentValue The current hovered object.
115115
* @param {SVGAnimatedString} rootValue The default object to hover on.
116+
* @param {SVGAnimatedString} loopValue Value to hover on after end traversal
116117
* @param {Boolean} isReverse Whether to traverse backwards if needed.
117118
* @param {KeyTraversal} self Access to outer scope of this function.
118119
* @return {SVGAnimatedString} Returns the new object to hover on.
@@ -135,7 +136,7 @@ GTE.UI = (function (parentModule) {
135136

136137
// Will hold the default loop-around value
137138
var loopValue;
138-
// Will hold the root value
139+
// Will hold the root value to hover on initially
139140
var rootValue;
140141

141142
switch(e.which) {

0 commit comments

Comments
 (0)