Whitespace fixes

This commit is contained in:
Alexey Gulev 2019-03-28 07:55:18 +01:00
parent 87e6f6ef1f
commit c38354e532
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ end
--- Create UI instance for ui elements --- Create UI instance for ui elements
-- @return instance with all ui components -- @return instance with all ui components
function M.new(self) function M.new(self)
if register_basic_components then if register_basic_components then
register_basic_components() register_basic_components()
register_basic_components = false register_basic_components = false
end end

View File

@ -29,16 +29,16 @@ function init(self)
self.druid:new_button("button_1", function() self.druid:new_button("button_1", function()
print("On button 1") print("On button 1")
end) end)
--alternative way of component creation --alternative way of component creation
self.druid:new(druid.comps.button, "button_2", function() self.druid:new(druid.comps.button, "button_2", function()
print("On button 2") print("On button 2")
end) end)
self.druid:new_button("button_3", function() self.druid:new_button("button_3", function()
print("On button 3") print("On button 3")
end) end)
self.druid:new_android_back(function(self, params) self.druid:new_android_back(function(self, params)
print("On android back", params) print("On android back", params)
end, 2) end, 2)