1
0
Fork 0

don't multiply with nil

This commit is contained in:
mfranz 2007-06-20 15:16:29 +00:00
parent 35bd6c379a
commit ce356a350e

View file

@ -376,8 +376,12 @@ var data = {
},
save : func(v = nil) {
me.loopid += 1;
me.interval = 60 * v;
v == nil ? me._save_() : me._loop_(me.loopid);
if (v == nil) {
me._save_();
} else {
me.interval = 60 * v;
me._loop_(me.loopid);
}
},
_loop_ : func(id) {
id == me.loopid or return;