Slider: add missing semicolons

master
thyttan 2023-10-17 23:21:04 +02:00
parent 6c1fb8cc18
commit 4d6edb1292
1 changed files with 3 additions and 3 deletions

View File

@ -55,8 +55,8 @@ try { // For making it possiblie to run the test app in the following catch stat
o.c.outerBorderSize--; o.c.outerBorderSize--;
o.c.innerBorderSize--; o.c.innerBorderSize--;
} }
o.c.outerBorderSize = Math.max(0,o.c.outerBorderSize) o.c.outerBorderSize = Math.max(0,o.c.outerBorderSize);
o.c.innerBorderSize = Math.max(0,o.c.innerBorderSize) o.c.innerBorderSize = Math.max(0,o.c.innerBorderSize);
let totalBorderSize = o.c.outerBorderSize + o.c.innerBorderSize; let totalBorderSize = o.c.outerBorderSize + o.c.innerBorderSize;
o.c.rounded = o.c.rounded?o.c.width/2:0; o.c.rounded = o.c.rounded?o.c.width/2:0;
@ -202,7 +202,7 @@ try { // For making it possiblie to run the test app in the following catch stat
// Add logic for auto progressing the slider only if wanted. // Add logic for auto progressing the slider only if wanted.
if (o.c.autoProgress) { if (o.c.autoProgress) {
o.f.autoUpdate = ()=>{ o.f.autoUpdate = ()=>{
o.v.level = o.v.autoInitLevel + Math.round((Date.now()-o.v.autoInitTime)/1000) o.v.level = o.v.autoInitLevel + Math.round((Date.now()-o.v.autoInitTime)/1000);
if (o.v.level>o.c.steps) o.v.level=o.c.steps; if (o.v.level>o.c.steps) o.v.level=o.c.steps;
cb("auto", o.v.level); cb("auto", o.v.level);
o.f.draw&&o.f.draw(o.v.level); o.f.draw&&o.f.draw(o.v.level);