don't multiply with nil
This commit is contained in:
parent
35bd6c379a
commit
ce356a350e
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue