callbacks fix
This commit is contained in:
parent
72c4eb8689
commit
cac01a34c9
@ -8,9 +8,9 @@ local context = require(path.. ".core.stack")
|
|||||||
return function (name, callback)
|
return function (name, callback)
|
||||||
local activeContext = context.getContext()
|
local activeContext = context.getContext()
|
||||||
|
|
||||||
if context.element[name] then
|
if activeContext.element[name] then
|
||||||
error('callback with name '..name..' would interfere with internal fields')
|
error('callback with name '..name..' would interfere with internal fields')
|
||||||
end
|
end
|
||||||
|
|
||||||
context.element[name] = callback
|
activeContext.element[name] = callback
|
||||||
end
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user