var uses hook, not inherit

This commit is contained in:
p.kosyh 2010-06-19 17:43:55 +00:00
parent 10ebae3586
commit 390ab5aebd

View file

@ -38,8 +38,8 @@ vars_object = obj {
end
}
obj = inherit(obj,
function(v)
obj = hook(obj,
function(f, v, ...)
__vars_fill(v)
return v
return f(v, unpack(arg))
end)