refactoring
This commit is contained in:
@@ -31,8 +31,6 @@ do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- alternatively rely on module encapsulation, modifier "method" to declare methods
|
|
||||||
|
|
||||||
do
|
do
|
||||||
local _state = setmetatable(t, T('__mode', 'kv'))
|
local _state = setmetatable(t, T('__mode', 'kv'))
|
||||||
local __index = function(self, k)
|
local __index = function(self, k)
|
||||||
|
|||||||
+1
-1
@@ -254,7 +254,7 @@ do
|
|||||||
end
|
end
|
||||||
if not self[str] and (str == 'usable' or str == 'exact' and self.name and size(self) == 1) then
|
if not self[str] and (str == 'usable' or str == 'exact' and self.name and size(self) == 1) then
|
||||||
self[str] = A(str, 1)
|
self[str] = A(str, 1)
|
||||||
return A('blizzard', str, 1)
|
return A('blizzard', str, str, 1)
|
||||||
elseif i == 1 and strlen(str) <= 63 then
|
elseif i == 1 and strlen(str) <= 63 then
|
||||||
self.name = A(str, unquote(str))
|
self.name = A(str, unquote(str))
|
||||||
return A('blizzard', 'name', str, unquote(str))
|
return A('blizzard', 'name', str, unquote(str))
|
||||||
|
|||||||
Reference in New Issue
Block a user