mirror of
https://github.com/vrld/hump.git
synced 2024-10-15 09:04:18 +00:00
Added string includes using import method.
This commit is contained in:
parent
dbf60e3dc5
commit
656fd17dc4
@ -60,6 +60,9 @@ local function new(class)
|
|||||||
if getmetatable(inc) then inc = {inc} end
|
if getmetatable(inc) then inc = {inc} end
|
||||||
|
|
||||||
for _, other in ipairs(inc) do
|
for _, other in ipairs(inc) do
|
||||||
|
if type(other) == "string" then
|
||||||
|
other = import(other)
|
||||||
|
end
|
||||||
include(class, other)
|
include(class, other)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user