Slider: Assign empty function to cb if undefined

master
thyttan 2023-10-01 00:50:28 +02:00
parent 0952ad9a26
commit ecd4a7ee0c
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ try { // for making it possiblie to run the test app in the following catch stat
const R = Bangle.appRect; const R = Bangle.appRect;
if (!cb) cb = ()=>{};
let o = {}; let o = {};
o.v = {}; // variables go here. o.v = {}; // variables go here.
o.f = {}; // functions go here. o.f = {}; // functions go here.