Skip to content

Commit

Permalink
creating new rows automatically when reaching the end
Browse files Browse the repository at this point in the history
  • Loading branch information
timlg07 committed Feb 24, 2019
1 parent 595f7e4 commit b7914c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Registermaschine.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ class Registermaschine {
let i = $storage.speicherZellen.indexOf($storage.focus);

let focus = $storage.focus;
if( i%2 != 0 && i != -1 && i+1 < $storage.speicherZellen.length){
if( i%2 != 0 && i != -1 ){
if( i+1 >= $storage.speicherZellen.length ){
$storage.createTableRow();
}
focus = $storage.speicherZellen[++i];
}

Expand Down

0 comments on commit b7914c3

Please sign in to comment.