Add blink effect

This commit is contained in:
Henrique Santiago
2013-02-05 19:08:32 -02:00
parent 637b6ceca2
commit d4fb6127fc
4 changed files with 36 additions and 3 deletions

View File

@@ -25,8 +25,8 @@ function addEvent(callback, front)
return event
end
function cycleEvent(callback, front)
local event = g_dispatcher.cycleEvent(callback, front)
function cycleEvent(callback, interval)
local event = g_dispatcher.cycleEvent(callback, interval)
-- must hold a reference to the callback, otherwise it would be collected
event._callback = callback
return event