aim
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -217,3 +217,3 @@ const $1906921049_autoFocus = (aim, set) => { | ||
set.parent = parent | ||
parent.children[index] = set | ||
return (parent.children[index] = set) | ||
} | ||
@@ -322,3 +322,7 @@ | ||
} | ||
$1870128113_createLeaf(parent, index, set) | ||
if (index in parent.children && parent.children[index] === $3174120555_aim.currentFocus) { | ||
$3174120555_aim.currentFocus = $1870128113_createLeaf(parent, index, set) | ||
} else { | ||
$1870128113_createLeaf(parent, index, set) | ||
} | ||
if (parent.children.length > index + 1) { | ||
@@ -483,4 +487,2 @@ $3174120555_updatePositions(parent) | ||
$3174120555_aim.currentFocus = false | ||
// changeFocus(aim, 'y', -1) || changeFocus(aim, 'x', -1) || | ||
// changeFocus(aim, 'y', 1) || changeFocus(aim, 'x', 1) | ||
} | ||
@@ -499,14 +501,2 @@ while ((length = children.length) === 1 && ('parent' in target)) { | ||
} | ||
// // why do we need this check??? | ||
// if (index < length) { | ||
// for (var i = index + 1; i < length; i++) { | ||
// if (i in children) { | ||
// children[children[i].index = i - 1] = children[i] | ||
// } else { | ||
// delete children[i - 1] | ||
// } | ||
// } | ||
// children.pop() | ||
// } | ||
}, | ||
@@ -513,0 +503,0 @@ /* |
{ | ||
"name": "aim", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "description": "Dependency free focus manager with built-in universal key navigation.", |
19709
550