timer:stop == timer:del
This commit is contained in:
parent
994ca31b2f
commit
589c48653f
|
@ -1857,7 +1857,7 @@ timer = obj { -- timer calls stead.timer callback
|
||||||
end
|
end
|
||||||
return tonumber(s._timer);
|
return tonumber(s._timer);
|
||||||
end,
|
end,
|
||||||
del = function(s, v)
|
stop = function(s, v)
|
||||||
s._timer = nil;
|
s._timer = nil;
|
||||||
if set_timer == nil then
|
if set_timer == nil then
|
||||||
return false
|
return false
|
||||||
|
@ -1865,6 +1865,9 @@ timer = obj { -- timer calls stead.timer callback
|
||||||
set_timer(0)
|
set_timer(0)
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
|
del = function(s, v)
|
||||||
|
return s:stop(v);
|
||||||
|
end,
|
||||||
set = function(s, v)
|
set = function(s, v)
|
||||||
s._timer = tonumber(v);
|
s._timer = tonumber(v);
|
||||||
if set_timer == nil then
|
if set_timer == nil then
|
||||||
|
|
Loading…
Reference in a new issue