Skip to content

Commit

Permalink
revert2
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwad committed Oct 9, 2024
1 parent 4e28a3a commit 2862555
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lacci/lib/shoes/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,7 @@ def init
send_shoes_event(event_name: "init")
return if @do_shutdown

with_slot(@document_root) do
@content_container = flow(width: 1.0, height: 1.0)
with_slot(@content_container, &@app_code_body)
end
with_slot(@document_root, &@app_code_body)
end

# "Container" drawables like flows, stacks, masks and the document root
Expand Down Expand Up @@ -290,7 +287,7 @@ def page(name, &block)

def visit(name)
if @pages && @pages[name]
@content_container.clear do
@document_root.clear do
instance_eval(&@pages[name])
end
else
Expand Down

0 comments on commit 2862555

Please sign in to comment.