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:
@@ -11,6 +11,8 @@ local DocView = require "core.docview"
|
||||
---@field mouse core.view.position
|
||||
local RootView = View:extend()
|
||||
|
||||
function RootView:__tostring() return "RootView" end
|
||||
|
||||
function RootView:new()
|
||||
RootView.super.new(self)
|
||||
self.root_node = Node()
|
||||
@@ -494,5 +496,4 @@ function RootView:draw()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return RootView
|
||||
|
||||
Reference in New Issue
Block a user