mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Move helper.get_node to component
This commit is contained in:
@@ -114,6 +114,7 @@ function Component.get_node(self, node_or_name)
|
||||
local nodes = self:get_nodes()
|
||||
|
||||
if nodes then
|
||||
assert(type(node_or_name) == "strings", "You should pass node name instead of node")
|
||||
return nodes[template_name .. node_or_name]
|
||||
else
|
||||
if type(node_or_name) == const.STRING then
|
||||
|
Reference in New Issue
Block a user