From d6b5f5c22d690919c5190964668aa49d374b7bbc Mon Sep 17 00:00:00 2001 From: kikito Date: Sat, 31 Oct 2015 16:26:20 +0100 Subject: [PATCH] do not stub __metatable or __mode --- middleclass.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/middleclass.lua b/middleclass.lua index f16ab92..5b9d712 100644 --- a/middleclass.lua +++ b/middleclass.lua @@ -97,9 +97,9 @@ end local Object = _createClass("Object", nil) -Object.static.__metamethods = { '__add', '__band', '__bor', '__bxor', '__bnot', '__call', '__concat', '__div', '__eq', - '__ipairs', '__idiv', '__le', '__len', '__lt', '__metatable', '__mod', '__mode', - '__mul', '__pairs', '__pow', '__sh1', '__shr', '__sub', '__tostring', '__unm' } +Object.static.__metamethods = { '__add', '__band', '__bor', '__bxor', '__bnot', '__call', '__concat', + '__div', '__eq', '__ipairs', '__idiv', '__le', '__len', '__lt', '__mod', + '__mul', '__pairs', '__pow', '__shl', '__shr', '__sub', '__tostring', '__unm' } function Object.static:allocate() assert(type(self) == 'table', "Make sure that you are using 'Class:allocate' instead of 'Class.allocate'")