aim
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -124,3 +124,3 @@ const $1906921049_autoFocus = (aim, set) => { | ||
;const $1870128113_createBranch = (parent, index) => { | ||
if (index in parent.children) { | ||
if (index in parent.children && 'children' in parent.children[index]) { | ||
return parent.children[index] | ||
@@ -178,2 +178,3 @@ } else { | ||
if (!('x' in set)) { | ||
set.x = parent.x | ||
@@ -464,10 +465,12 @@ if (index) { | ||
} | ||
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] | ||
// 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] | ||
} | ||
} | ||
} | ||
if (children[index]) { | ||
children.pop() | ||
@@ -474,0 +477,0 @@ } |
{ | ||
"name": "aim", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "description": "Dependency free focus manager with built-in universal key navigation.", |
18997
524