diff --git a/src/js/assayJS.js b/src/js/assayJS.js index dc2a097d59a25fc7fa1df398bdff0e8fea12bff7..0e92c0bb7e8c755208c1cba51ea1424fd2ecbae1 100644 --- a/src/js/assayJS.js +++ b/src/js/assayJS.js @@ -528,16 +528,6 @@ window.Enunciate = function Enunciate(slave) { if (slave.custom.title !== undefined && slave.custom.title !== "") { V.titleEnunciate = slave.custom.title; } - if (V.PC.customTitle !== undefined) { - V.writtenTitle = V.PC.customTitle; - } else if (V.PC.title !== 0) { - V.writtenTitle = "Master"; - } else { - V.writtenTitle = "Mistress"; - } - if (slave.custom.title !== undefined && slave.custom.title !== "" && slave.rudeTitle === 0) { - V.writtenTitle = slave.custom.title; - } V.sayEnunciate = "say"; V.sEnunciate = "s"; V.SEnunciate = "S"; @@ -561,6 +551,17 @@ window.Enunciate = function Enunciate(slave) { V.xEnunciate = "x"; V.XEnunciate = "X"; } + // writtenTitle should be defined outside of the lispCheck. + if (V.PC.customTitle !== undefined) { + V.writtenTitle = V.PC.customTitle; + } else if (V.PC.title !== 0) { + V.writtenTitle = "Master"; + } else { + V.writtenTitle = "Mistress"; + } + if (slave.custom.title !== undefined && slave.custom.title !== "" && slave.rudeTitle === 0) { + V.writtenTitle = slave.custom.title; + } }; /**