summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/attr-lay.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/attr-lay.mkiv')
-rw-r--r--Master/texmf-dist/tex/context/base/attr-lay.mkiv8
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/context/base/attr-lay.mkiv b/Master/texmf-dist/tex/context/base/attr-lay.mkiv
index 9c9c3318ef1..6055c2a73d2 100644
--- a/Master/texmf-dist/tex/context/base/attr-lay.mkiv
+++ b/Master/texmf-dist/tex/context/base/attr-lay.mkiv
@@ -94,12 +94,14 @@
\let\layoutcomponentboxattribute \empty
\unexpanded\def\showlayoutcomponents
- {%\ctxlua{attributes.viewerlayers.enable()}% automatic
- \let\setlayoutcomponentattribute \attr_layoutcomponent_set
+ {\let\setlayoutcomponentattribute \attr_layoutcomponent_set
\let\resetlayoutcomponentattribute\attr_layoutcomponent_reset}
+\unexpanded\def\attr_layoutcomponent_cleanup
+ {\ctxcommand{cleanuplayers()}}
+
\appendtoks
- \ctxcommand{cleanuplayers()}%
+ \attr_layoutcomponent_cleanup
\to \everyshipout
\protect \endinput