This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 031a52f  fix inheritance links
031a52f is described below

commit 031a52f197a35f7cd94098a6f540e056fa330859
Author: Alex Harui <aha...@apache.org>
AuthorDate: Sat Feb 3 22:24:50 2018 -0800

    fix inheritance links
---
 examples/royale/ASDoc/src/main/royale/models/ASDocModel.as | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as 
b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
index f69f155..10e9d8d 100644
--- a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
+++ b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
@@ -389,6 +389,15 @@ package models
                         var data:Object = {label: end };
                         if (masterData.classnames.indexOf(p) != -1)
                         {
+                               c = p.lastIndexOf(".");
+                               if (c != -1)
+                               {
+                                       p = p.substr(0, c) + "/" + p.substr(c + 
1);
+                               }
+                               else
+                               {
+                                       p = "/"+ p;
+                               }
                                data.href = p;
                         }
                         s.push(data);

-- 
To stop receiving notification emails like this one, please contact
aha...@apache.org.

Reply via email to