mirror of
https://github.com/kikito/middleclass.git
synced 2024-11-08 09:34:22 +00:00
propogate -> propagate
This commit is contained in:
parent
524d0ddc8c
commit
3de0dc2166
@ -53,11 +53,11 @@ for _, metamethod in ipairs(all_metamethods_list) do
|
|||||||
all_metamethods[metamethod] = true
|
all_metamethods[metamethod] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
local function _propogateMetamethod(aClass, key, value)
|
local function _propagateMetamethod(aClass, key, value)
|
||||||
for subclass in pairs(aClass.subclasses) do
|
for subclass in pairs(aClass.subclasses) do
|
||||||
if not subclass.__metamethods[key] then
|
if not subclass.__metamethods[key] then
|
||||||
subclass.__instanceDict[key] = value
|
subclass.__instanceDict[key] = value
|
||||||
_propogateMetamethod(subclass, key, value)
|
_propagateMetamethod(subclass, key, value)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -71,7 +71,7 @@ local function _updateClassDict(aClass, key, value)
|
|||||||
aClass.__metamethods[key] = true
|
aClass.__metamethods[key] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
_propogateMetamethod(aClass, key, value)
|
_propagateMetamethod(aClass, key, value)
|
||||||
end
|
end
|
||||||
|
|
||||||
aClass.__instanceDict[key] = value
|
aClass.__instanceDict[key] = value
|
||||||
|
Loading…
Reference in New Issue
Block a user