forked from enlightenment/efl
elua: take __tostring from object metatable on robjects
This commit is contained in:
parent
1392518ec2
commit
79a01f9ab3
|
@ -110,7 +110,7 @@ M.Readonly_Object.__call = function(self, ...)
|
|||
local r = newproxy(true)
|
||||
local rmt = getmetatable(r)
|
||||
rmt.__index = self
|
||||
rmt.__tostring = self.__tostring
|
||||
rmt.__tostring = Object_MT.__tostring
|
||||
rmt.__metatable = false
|
||||
if self.__enable_dtor then
|
||||
rmt.__gc = robj_gc
|
||||
|
|
Loading…
Reference in New Issue