This commit is contained in:
mmcw-dev 2019-04-16 10:01:54 -04:00
parent b33ef36ab4
commit bb2bfabf9c
1 changed files with 17 additions and 7 deletions

View File

@ -111,22 +111,32 @@ class Grid {
let c : string; let c : string;
let checked : boolean = $(t).prop('checked'); let checked : boolean = $(t).prop('checked');
//if input was not checked, but now is // if input was not checked, but now is
//event occurs after user action // event occurs after user action
if (checked) { if (checked) {
c = $(t).attr('class').replace('.', ''); c = $(t).attr('class').replace('.', '');
seq.set(x, c); seq.set(x, c);
} else { } else {
seq.grid[x] = undefined; seq.grid[x] = undefined;
delete seq.grid[x]; delete seq.grid[x];
seq.unset(x); seq.unset(x);
} }
this.state(x); this.state(x);
seq.stats(); seq.stats();
} }