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

gregdove 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 9e48b22  Crux : add some unported support for the dispatcher during 
setup
9e48b22 is described below

commit 9e48b22b8cc7cdd2f3195aa6cf25ad20d261e8c9
Author: greg-dove <[email protected]>
AuthorDate: Sun Oct 10 10:15:56 2021 +1300

    Crux : add some unported support for the dispatcher during setup
---
 .../main/royale/org/apache/royale/crux/BeanFactory.as | 19 +++++--------------
 1 file changed, 5 insertions(+), 14 deletions(-)

diff --git 
a/frameworks/projects/Crux/src/main/royale/org/apache/royale/crux/BeanFactory.as
 
b/frameworks/projects/Crux/src/main/royale/org/apache/royale/crux/BeanFactory.as
index 972b587..9422124 100644
--- 
a/frameworks/projects/Crux/src/main/royale/org/apache/royale/crux/BeanFactory.as
+++ 
b/frameworks/projects/Crux/src/main/royale/org/apache/royale/crux/BeanFactory.as
@@ -149,29 +149,20 @@ package org.apache.royale.crux
                                                
crux.config.tearDownEventPriority);//, true ); - weak refernce
                        }
                        
-                       
-                       /**
-                        * override public function 
addEventListener(type:String, handler:Function, opt_capture:Boolean = false, 
opt_handlerScope:Object = null):void
-                        {
-            var source:Object = getActualDispatcher_(type);
-            goog.events.listen(source, type, handler);
-        }
-                        */
-                       //@todo...
-                       /*if(crux.dispatcher)
+
+                       if(crux.dispatcher)
                        {
                                // as long as the dispatcher is a view, set it 
up like any other view
                                // this allows it to be automatically torn down 
if caught by tearDownEventHandler()
-                               if( crux.dispatcher is IRoyaleElement) 
//DisplayObject
+                               if( crux.dispatcher is UIBase) //DisplayObject
                                {
-                                               CruxManager.setUp( UIBase( 
crux.dispatcher ) );
-
+                                       CruxManager.setUp( UIBase( 
crux.dispatcher ) );
                                }
                                else
                                {
                                        setUpBean( createBeanFromSource( 
crux.dispatcher ) );
                                }
-                       }*/
+                       }
                        
                        crux.dispatcher.dispatchEvent( new CruxEvent( 
CruxEvent.LOAD_COMPLETE, crux ) );
                }

Reply via email to