Skip to content
Permalink
Browse files

fix(core): Actually deprecate old nodefactory instantiators

  • Loading branch information
alerque committed Jan 23, 2020
1 parent 03332c6 commit 774f0fce2c3ac6519f9fb98d91f71daa5aa88d8e
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/nodefactory.lua
@@ -658,7 +658,7 @@ end

setmetatable(nodefactory, {
__index = function (_, prop)
-- SU.warn("Please use new nodefactory class constructors, not: "..prop)
SU.deprecated("SILE.nodefactory." .. prop, "SILE.nodefactory." .. prop:match("n?e?w?(.*)"):lower(), "0.10.0")
local old_constructor = _deprecated_nodefactory[prop]
return string.find(prop, "^new") and old_constructor or old_constructor()
end

0 comments on commit 774f0fc

Please sign in to comment.
You can’t perform that action at this time.