Skip to content

Commit

Permalink
fix(core): Actually deprecate old nodefactory instantiators
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jan 24, 2020
1 parent 03332c6 commit 774f0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/nodefactory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 774f0fc

Please sign in to comment.