add a __tostring method to every object (#1534)
* added a stupid __tostring to every object * moved every __tostring to just after the :extend() call --------- Co-authored-by: Adam <adamdharrison@gmail.com> (cherry picked from commit 880e7f1fa1521cdf176f44627a27c901e187058e)
This commit is contained in:
+2
-1
@@ -48,6 +48,8 @@ local Scrollbar = require "core.scrollbar"
|
||||
---@field current_scale number
|
||||
local View = Object:extend()
|
||||
|
||||
function View:__tostring() return "View" end
|
||||
|
||||
-- context can be "application" or "session". The instance of objects
|
||||
-- with context "session" will be closed when a project session is
|
||||
-- terminated. The context "application" is for functional UI elements.
|
||||
@@ -307,5 +309,4 @@ end
|
||||
function View:draw()
|
||||
end
|
||||
|
||||
|
||||
return View
|
||||
|
||||
Reference in New Issue
Block a user