diff --git a/src/ReactiveTools.jl b/src/ReactiveTools.jl index 86b6cd6..93fb988 100644 --- a/src/ReactiveTools.jl +++ b/src/ReactiveTools.jl @@ -531,9 +531,8 @@ function init_model(M::Type{<:ReactiveModel}, args...; context = nothing, kwargs end end - - handlersfn = if context !== nothing && isdefined(M, :__GF_AUTO_HANDLERS__) - M.__GF_AUTO_HANDLERS__ + handlersfn = if context !== nothing && isdefined(m, :__GF_AUTO_HANDLERS__) + m.__GF_AUTO_HANDLERS__ else Stipple.ReactiveTools.HANDLERS_FUNCTIONS[M] end