You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2022/07/04 13:12:00 UTC

[royale-asjs] branch develop updated: Deferred model initialization - Give other beads a chance to be aware of inititialization state

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

yishayw 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 bfb81149a3 Deferred model initialization - Give other beads a chance to be aware of inititialization state
     new fca2da4cca Merge branch 'develop' of https://github.com/apache/royale-asjs into develop
bfb81149a3 is described below

commit bfb81149a371741e8d9f1887f2c1e641beefe19d
Author: yweiss <yi...@mcafee.com>
AuthorDate: Mon Jul 4 06:11:02 2022 -0700

    Deferred model initialization - Give other beads a chance to be aware of inititialization state
---
 .../src/main/royale/mx/controls/beads/NumericStepperController.as      | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/NumericStepperController.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/NumericStepperController.as
index a8abf271d1..ef62b4f44c 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/NumericStepperController.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/NumericStepperController.as
@@ -23,6 +23,7 @@ package mx.controls.beads
     import org.apache.royale.core.IBeadController;
     import org.apache.royale.events.IEventDispatcher;
     import mx.events.FlexEvent;
+    import org.apache.royale.events.Event;
 	
     /**
      *  The NumericStepperController class takes control of some lifecycle issues.
@@ -46,7 +47,9 @@ package mx.controls.beads
 		protected function strandInitialized(event:FlexEvent):void
 		{
 			var model:IDeferredModel = (event.target as IStrand).getBeadByType(IDeferredModel) as IDeferredModel;
+            (event.target as IEventDispatcher).dispatchEvent(new Event("deferredModelInitializing"));
 			model.deferred = false;
+            (event.target as IEventDispatcher).dispatchEvent(new Event("deferredModelInitialized"));
 		}
 	}
 }