Small optimization && refactoring

This commit is contained in:
Insality
2023-07-15 15:56:06 +03:00
parent 337090e74c
commit 556e1a9bae
11 changed files with 33 additions and 46 deletions

View File

@@ -123,7 +123,7 @@ end
function Input.init(self, click_node, text_node, keyboard_type)
self.druid = self:get_druid(self)
if type(text_node) == const.TABLE then
if type(text_node) == "table" then
self.text = text_node
else
self.text = self.druid:new_text(text_node)