Skip to content

Commit 33bcd33

Browse files
authored
Merge pull request #1623 from basvandertol/FIX_AMSmath_ID_initilization
Fix for minor bug in fix for issue #240
2 parents e1810fe + e891f23 commit 33bcd33

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

unpacked/extensions/TeX/AMSmath.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,9 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
603603
TEX.prefilterHooks.Add(function (data) {
604604
AMS.display = data.display;
605605
AMS.number = AMS.startNumber; // reset equation numbers (in case the equation restarted)
606-
AMS.eqlabels = AMS.eqIDs = {}; AMS.badref = false;
606+
AMS.eqlabels = {};
607+
AMS.eqIDs = {};
608+
AMS.badref = false;
607609
if (AMS.refUpdate) {AMS.number = data.script.MathJax.startNumber}
608610
});
609611
TEX.postfilterHooks.Add(function (data) {
@@ -637,7 +639,10 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
637639
//
638640
TEX.resetEquationNumbers = function (n,keepLabels) {
639641
AMS.startNumber = (n || 0);
640-
if (!keepLabels) {AMS.labels = AMS.IDs = {}}
642+
if (!keepLabels) {
643+
AMS.labels = {};
644+
AMS.IDs = {};
645+
}
641646
}
642647

643648
/******************************************************************************/

0 commit comments

Comments
 (0)