You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2022/01/09 22:13:44 UTC
[royale-asjs] branch develop updated: loadBeadFromValuesManager should be after beads are added
This is an automated email from the ASF dual-hosted git repository.
harbs 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 69c4587 loadBeadFromValuesManager should be after beads are added
69c4587 is described below
commit 69c4587e2fcdcd9b8b0e164068adf241b0cd442e
Author: Harbs <ha...@in-tools.com>
AuthorDate: Mon Jan 10 00:13:34 2022 +0200
loadBeadFromValuesManager should be after beads are added
---
.../src/main/royale/org/apache/royale/routing/BrowserRouter.as | 5 ++---
.../Basic/src/main/royale/org/apache/royale/routing/HashRouter.as | 7 ++++---
.../Basic/src/main/royale/org/apache/royale/routing/Router.as | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/BrowserRouter.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/BrowserRouter.as
index c299863..408491b 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/BrowserRouter.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/BrowserRouter.as
@@ -117,9 +117,7 @@ package org.apache.royale.routing
public function set strand(value:IStrand):void
{
_strand = value;
- loadBeadFromValuesManager(IPathRouteBead, "iPathRouteBead", this);
-
- // wait until the app is initialized. Calling onInit async soves this problem
+ // wait until the app is initialized. Calling onInit async solves this problem
callLater(onInit);
}
@@ -139,6 +137,7 @@ package org.apache.royale.routing
for each (var bead:IBead in beads)
addBead(bead);
}
+ loadBeadFromValuesManager(IPathRouteBead, "iPathRouteBead", this);
// needed for binding in MXML
dispatchEvent(new Event("initBindings"));
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/HashRouter.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/HashRouter.as
index 56baefc..8f183da 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/HashRouter.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/HashRouter.as
@@ -110,13 +110,11 @@ package org.apache.royale.routing
public function set strand(value:IStrand):void
{
_strand = value;
- loadBeadFromValuesManager(IPathRouteBead, "iPathRouteBead", this);
COMPILE::JS
{
window.addEventListener("hashchange", hashChangeHandler);
}
-
- // wait until the app is initialized. Calling onInit async soves this problem
+ // wait until the app is initialized. Calling onInit async solves this problem
callLater(onInit);
}
@@ -136,6 +134,9 @@ package org.apache.royale.routing
for each (var bead:IBead in beads)
addBead(bead);
}
+
+ loadBeadFromValuesManager(IPathRouteBead, "iPathRouteBead", this);
+
// needed for binding in MXML
dispatchEvent(new Event("initBindings"));
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
index f9dc4b3..4c0205f 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
@@ -81,13 +81,11 @@ package org.apache.royale.routing
public function set strand(value:IStrand):void
{
_strand = value;
- loadBeadFromValuesManager(IPathRouteBead, "iPathRouteBead", this);
COMPILE::JS
{
window.addEventListener("hashchange", hashChangeHandler);
}
-
- // wait until the app is initialized. Calling onInit async soves this problem
+ // wait until the app is initialized. Calling onInit async solves this problem
callLater(onInit);
}
@@ -107,6 +105,8 @@ package org.apache.royale.routing
for each (var bead:IBead in beads)
addBead(bead);
}
+
+ loadBeadFromValuesManager(IPathRouteBead, "iPathRouteBead", this);
// needed for binding in MXML
dispatchEvent(new Event("initBindings"));