--- a/latest/common/script/resolveReferences.js Thu Jul 16 00:54:13 2015 -0400
+++ b/latest/common/script/resolveReferences.js Thu Jul 16 10:49:12 2015 -0500
@@ -58,8 +58,8 @@
// strategy: Traverse the content finding all of the terms defined
$.each(base.querySelectorAll("dfn"), function(i, item) {
var $t = $(item) ;
- var title = $t.dfnTitle();
- var n = $t.makeID("dfn", title);
+ var titles = $t.getDfnTitles();
+ var n = $t.makeID("dfn", titles[0]);
if (n) {
termNames[n] = $t.parent() ;
}
@@ -81,12 +81,14 @@
Object.keys(termNames).forEach(function(term) {
var $p = $("#"+term) ;
if ($p) {
- var t = $p.dfnTitle();
+ var tList = $p.getDfnTitles();
$p.parent().next().remove();
$p.remove() ;
- if (respecConfig.definitionMap[t]) {
- delete respecConfig.definitionMap[t];
- }
+ tList.forEach(function( item ) {
+ if (respecConfig.definitionMap[item]) {
+ delete respecConfig.definitionMap[item];
+ }
+ });
}
});
}