refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-10-01 01:53:34 +02:00
parent 7fb7fa844b
commit 14e429221c
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -31,8 +31,6 @@ do
end
end
-- alternatively rely on module encapsulation, modifier "method" to declare methods
do
local _state = setmetatable(t, T('__mode', 'kv'))
local __index = function(self, k)
+1 -1
View File
@@ -254,7 +254,7 @@ do
end
if not self[str] and (str == 'usable' or str == 'exact' and self.name and size(self) == 1) then
self[str] = A(str, 1)
return A('blizzard', str, 1)
return A('blizzard', str, str, 1)
elseif i == 1 and strlen(str) <= 63 then
self.name = A(str, unquote(str))
return A('blizzard', 'name', str, unquote(str))