W3C home > Mailing lists > Public > public-dap-commits@w3.org > January 2010

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

From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 28 Jan 2010 16:36:45 +0000
To: public-dap-commits@w3.org
Message-Id: <E1NaXML-0000nm-VR@lionel-hutz.w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 28 January 2010 16:36:47 GMT