Changed lume.fn()'s returned fn to handle args

This commit is contained in:
rxi 2014-03-03 13:20:51 +00:00
parent 267f003f5e
commit c407ef9445

View File

@ -175,7 +175,10 @@ end
function lume.fn(fn, ...) function lume.fn(fn, ...)
local arg = {...} local arg = {...}
return function() return fn(unpack(arg)) end return function(...)
local a = lume.merge(lume.clone(arg), {...})
return fn(unpack(a))
end
end end