W3C home > Mailing lists > Public > public-dap-commits@w3.org > May 2012

2009/dap/ReSpec.js/js respec.js,1.186,1.187

From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 17 May 2012 15:32:41 +0000
To: public-dap-commits@w3.org
Message-Id: <E1SV2gz-0006rx-Jn@lionel-hutz.w3.org>
Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv26367/js

Modified Files:
	respec.js 
Log Message:
escaping bug for sequence in dictionary

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- respec.js	15 May 2012 17:13:10 -0000	1.186
+++ respec.js	17 May 2012 15:32:39 -0000	1.187
@@ -2648,7 +2648,7 @@
         var pad = max - memb.datatype.length;
         if (memb.nullable) pad = pad - 1;
         var nullable = memb.nullable ? "?" : "";
-        str += "<span class='idlMemberType'><a>" + memb.datatype + "</a>" + nullable + "</span> ";
+        str += "<span class='idlMemberType'>" + this.writeDatatype(memb.datatype) + nullable + "</span> ";
         for (var i = 0; i < pad; i++) str += " ";
         str += "<span class='idlMemberName'><a href='#" + curLnk + memb.refId + "'>" + memb.id + "</a></span>";
         if (memb.defaultValue) str += " = <span class='idlMemberValue'>" + memb.defaultValue + "</span>"
@@ -2657,8 +2657,12 @@
     },
 
     writeDatatype:    function (dt) {
+        // if (/sequence/.test(dt) || /dict/.test(dt)) {
+            console.log(dt);
+        // }
         var matched = /^sequence<(.+)>$/.exec(dt);
         if (matched) {
+            console.log("MATCHED!", matched[1])
             return "sequence&lt;<a>" + matched[1] + "</a>&gt;";
         }
         else {
Received on Thursday, 17 May 2012 15:32:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:31 UTC