Solve #182 add table pool for events

This commit is contained in:
Insality
2022-04-05 18:57:40 +03:00
parent 2779f9cf7a
commit dff522fbaa
24 changed files with 244 additions and 6 deletions

View File

@@ -217,6 +217,14 @@ function Text.init(self, node, value, adjust_type)
end
function Text.on_internal_remove(self)
component.on_internal_remove(self)
self.on_set_text:clear()
self.on_set_pivot:clear()
self.on_update_text_scale:clear()
end
function Text.on_layout_change(self)
self:set_to(self.last_value)
end