summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/attr-lay.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-04-19 23:04:15 +0000
committerKarl Berry <karl@freefriends.org>2017-04-19 23:04:15 +0000
commitf74161ca4e7eb3c5af9afcbe92522ae3b58987c1 (patch)
tree3c30a13df5ac7968195c85070a2b074578e669d2 /Master/texmf-dist/tex/context/base/mkiv/attr-lay.lua
parent1d5a55ac8f5506a7ae9cfca52f4b588182e199d4 (diff)
context beta/cont-tmf.zip (Apr 16 12:55)
git-svn-id: svn://tug.org/texlive/trunk@43931 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/attr-lay.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/attr-lay.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/attr-lay.lua b/Master/texmf-dist/tex/context/base/mkiv/attr-lay.lua
index 0d43979c813..ff9d1c38fd3 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/attr-lay.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/attr-lay.lua
@@ -62,7 +62,8 @@ viewerlayers.supported = true
viewerlayers.hasorder = true
local states = attributes.states
-local tasks = nodes.tasks
+local enableaction = nodes.tasks.enableaction
+local disableaction = nodes.tasks.disableaction
local nodeinjections = backends.nodeinjections
local codeinjections = backends.codeinjections
@@ -71,8 +72,6 @@ local texgetattribute = tex.getattribute
local texsettokenlist = tex.settoks
local unsetvalue = attributes.unsetvalue
-local nodepool = nodes.pool
-
local data = viewerlayers.data
local values = viewerlayers.values
local listwise = viewerlayers.listwise
@@ -148,12 +147,12 @@ local stack, enabled, global = { }, false, false
function viewerlayers.enable(value)
if value == false or not viewerlayers.supported then
if enabled then
- tasks.disableaction("shipouts","attributes.viewerlayers.handler")
+ disableaction("shipouts","attributes.viewerlayers.handler")
end
enabled = false
else
if not enabled then
- tasks.enableaction("shipouts","attributes.viewerlayers.handler")
+ enableaction("shipouts","attributes.viewerlayers.handler")
end
enabled = true
end