2009/dap/ReSpec.js/js respec.js,1.80,1.81

Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv3068/ReSpec.js/js

Modified Files:
	respec.js 
Log Message:
be more defensive in ID generation

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- respec.js	28 Jan 2010 16:01:43 -0000	1.80
+++ respec.js	28 Jan 2010 16:36:43 -0000	1.81
@@ -786,7 +786,7 @@
             // if (ant.getAttribute("class") == "externalDFN") continue;
             if (sn.hasClass(ant, "externalDFN")) continue;
             var title = this._getDfnTitle(ant);
-            if (dfnMap[title]) {
+            if (dfnMap[title] && !(dfnMap[title] instanceof Function)) {
                 ant.setAttribute("href", "#" + dfnMap[title]);
                 // ant.setAttribute("class", "internalDFN");
                 sn.addClass(ant, "internalDFN");

Received on Thursday, 28 January 2010 16:36:47 UTC