From cec8ba5f6ffbe6681fe62efa296b039b9ee8e827 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Wed, 12 Oct 2011 19:58:31 -0700 Subject: [PATCH] rebuilt --- moonscript/data.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/moonscript/data.lua b/moonscript/data.lua index f7dba0e..c6d9d93 100644 --- a/moonscript/data.lua +++ b/moonscript/data.lua @@ -11,8 +11,7 @@ Set = function(items) end return self end -Stack = (function() - local _parent_0 = nil +Stack = (function(_parent_0) local _base_0 = { __tostring = function(self) return "" @@ -47,10 +46,10 @@ Stack = (function() end }, { __index = _base_0, - __call = function(cls, ...) - local _self_0 = setmetatable({}, _base_0) - cls.__init(_self_0, ...) - return _self_0 + __call = function(mt, ...) + local self = setmetatable({}, _base_0) + mt.__init(self, ...) + return self end }) _base_0.__class = _class_0