feat(taskList): cleanup

This commit is contained in:
Johannes Millan 2017-11-12 23:29:18 +01:00
parent 15870beab4
commit 07eff8d684

View file

@ -426,14 +426,7 @@
}
static moveItem(array, oldIndex, newIndex) {
if (newIndex >= array.length) {
let k = newIndex - array.length;
while ((k--) + 1) {
array.push(undefined);
}
}
array.splice(newIndex, 0, array.splice(oldIndex, 1)[0]);
return array; // for testing purposes
}
}