rename create() to new()

This commit is contained in:
Alexey Gulev
2019-03-27 22:13:45 +01:00
parent 832ebe5674
commit 87e6f6ef1f
2 changed files with 4 additions and 4 deletions

View File

@@ -30,8 +30,8 @@ function init(self)
print("On button 1")
end)
--alternative way of component registration
self.druid:create(druid.comps.button, "button_2", function()
--alternative way of component creation
self.druid:new(druid.comps.button, "button_2", function()
print("On button 2")
end)