royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] branch develop updated: go back to slashes and fix some links
Date Thu, 15 Mar 2018 04:01:30 GMT
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 d64973a  go back to slashes and fix some links
d64973a is described below

commit d64973a1e222af088f49b9bea9e3fd1b0f66e8a5
Author: Alex Harui <aharui@apache.org>
AuthorDate: Wed Mar 14 21:01:16 2018 -0700

    go back to slashes and fix some links
---
 examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml   | 11 +++++++++--
 examples/royale/ASDoc/src/main/royale/models/ASDocModel.as |  3 ++-
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
index 68b8765..0c8e0fd 100644
--- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
+++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
@@ -113,14 +113,21 @@ limitations under the License.
             	  currentState = "packages";
             	else
             	{
-            		var c:int = hash.indexOf(ASDocModel.DELIMITER);
+                    var delimiter:String = ASDocModel.DELIMITER;
+            		var c:int = hash.indexOf(delimiter);
+                    if (c == -1)
+                    {
+                        c == hash.indexOf("$");
+                        if (c != -1)
+                            delimiter = "$";
+                    }
             		if (c != -1)
             		{
             			var pkg:String = hash.substr(0, c);
 						packageList.selectedItem = pkg;
 						packageChangedHandler();
             			var cls:String = hash.substr(c + 1);
-            			c = cls.indexOf(ASDocModel.DELIMITER)
+            			c = cls.indexOf(delimiter)
             			if (c != -1)
             			{
             				findMember = cls.substr(c + 1);
diff --git a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
index 0d8b9a6..f0d300f 100644
--- a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
+++ b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
@@ -25,7 +25,7 @@ package models
 	
 	public class ASDocModel extends EventDispatcher implements IBeadModel
 	{
-        public static const DELIMITER:String = "$";
+        public static const DELIMITER:String = "/";
         
 		public function ASDocModel()
 		{
@@ -437,6 +437,7 @@ package models
         			{
         			    addAttributes(data, data);
         				arr.splice(i, 1, data);
+                        data.ownerhref = currentPackage + DELIMITER + currentClass;
         			}
         			else
         			{

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

Mime
View raw message