Skip to content

Commit

Permalink
fix context in init_model
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Dec 12, 2024
1 parent d3d459d commit 533b3b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ReactiveTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 533b3b5

Please sign in to comment.