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:
@@ -33,9 +33,10 @@ local function get_item_height(item)
|
||||
return h
|
||||
end
|
||||
|
||||
|
||||
local LogView = View:extend()
|
||||
|
||||
function LogView:__tostring() return "LogView" end
|
||||
|
||||
LogView.context = "session"
|
||||
|
||||
|
||||
@@ -222,5 +223,4 @@ function LogView:draw()
|
||||
LogView.super.draw_scrollbar(self)
|
||||
end
|
||||
|
||||
|
||||
return LogView
|
||||
|
||||
Reference in New Issue
Block a user