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 a4c51b4feb Use getComponent
a4c51b4feb is described below

commit a4c51b4febd80d6150e2e6f55dc5a849c0a95ea2
Author: Harbs <[email protected]>
AuthorDate: Tue Jun 2 14:05:35 2026 +0300

    Use getComponent
---
 .../Basic/src/main/royale/org/apache/royale/routing/RouteToComponent.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToComponent.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToComponent.as
index ec1f9b4f09..25082ed9c0 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToComponent.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToComponent.as
@@ -73,7 +73,7 @@ package org.apache.royale.routing
       while(parent.numElements > 0)
         parent.removeElement(parent.getElementAt(0));
       
-      var comp:IChild = new route.component();
+      var comp:IChild = route.getComponent();
       parent.addElement(comp);
       if(route.title)
         host.routeState.title = route.title;

Reply via email to