use metatables when needed

This commit is contained in:
Enrique García Cota 2011-05-04 00:38:39 +02:00
parent a0e6c86a7b
commit 5d57e27a27

View File

@ -21,7 +21,7 @@ local function checkTimeAndCallback(time, callback)
assert(isCallable(callback), "callback must be a function")
end
local entries = {}
local entries = setmetatable({}, {__mode = "k"})
local function newEntry(time, callback, update, ...)
local entry = {