Move helper.get_node to component

This commit is contained in:
Insality
2020-02-07 01:17:43 +03:00
parent f65d5ce71c
commit 080035c301
12 changed files with 26 additions and 44 deletions

View File

@@ -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