Upgrade to middleclass 3.0.1

This commit is contained in:
Kenny Shields 2014-01-14 06:35:13 -05:00
parent a714e037c7
commit e21264d4d7
2 changed files with 5 additions and 3 deletions

View File

@ -6,6 +6,7 @@ Version 0.9.7.1 - Alpha (Release Date TBD)
[ADDED] a new tooltip method: GetOffsets() [ADDED] a new tooltip method: GetOffsets()
[CHANGED] Moved library files to /libraries [CHANGED] Moved library files to /libraries
[CHANGED] Upgraded to middleclass 3.0.1
================================================ ================================================
Version 0.9.7 - Alpha (January 12 - 2014) Version 0.9.7 - Alpha (January 12 - 2014)

View File

@ -1,5 +1,5 @@
local middleclass = { local middleclass = {
_VERSION = 'middleclass v3.0.0', _VERSION = 'middleclass v3.0.1',
_DESCRIPTION = 'Object Orientation for Lua', _DESCRIPTION = 'Object Orientation for Lua',
_LICENSE = [[ _LICENSE = [[
MIT LICENSE MIT LICENSE
@ -96,8 +96,9 @@ end
local Object = _createClass("Object", nil) local Object = _createClass("Object", nil)
Object.static.__metamethods = { '__add', '__call', '__concat', '__div', '__le', '__lt', Object.static.__metamethods = { '__add', '__call', '__concat', '__div', '__ipairs', '__le',
'__mod', '__mul', '__pow', '__sub', '__tostring', '__unm' } '__len', '__lt', '__mod', '__mul', '__pairs', '__pow', '__sub',
'__tostring', '__unm'}
function Object.static:allocate() function Object.static:allocate()
assert(type(self) == 'table', "Make sure that you are using 'Class:allocate' instead of 'Class.allocate'") assert(type(self) == 'table', "Make sure that you are using 'Class:allocate' instead of 'Class.allocate'")