flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [22/30] git commit: [flex-sdk] [refs/heads/VF2JS] - FLEX-34385 documenting unusual try-catch behaviour after event dispatch.
Date Mon, 28 Jul 2014 09:41:17 GMT
FLEX-34385 documenting unusual try-catch behaviour after event dispatch.


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/e93cb42a
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/e93cb42a
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/e93cb42a

Branch: refs/heads/VF2JS
Commit: e93cb42aaf9394ff0a7e9d0e4ef381c57c0d54e1
Parents: 039db68
Author: Mihai C <mihaic@apache.org>
Authored: Wed Jul 2 17:46:34 2014 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Mon Jul 28 11:39:43 2014 +0200

----------------------------------------------------------------------
 frameworks/projects/framework/src/mx/core/UIComponent.as | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e93cb42a/frameworks/projects/framework/src/mx/core/UIComponent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/core/UIComponent.as b/frameworks/projects/framework/src/mx/core/UIComponent.as
index 06ae586..7432f52 100644
--- a/frameworks/projects/framework/src/mx/core/UIComponent.as
+++ b/frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -13659,6 +13659,12 @@ public class UIComponent extends FlexSprite
      *  Dispatches an event into the event flow.
      *  The event target is the EventDispatcher object upon which
      *  the <code>dispatchEvent()</code> method is called.
+	 * 
+	 *  Note that when <code>dispatchEvent()</code> is called by code inside a
+	 *  <code>try</code> block, any error thrown thereafter can be caught by
+	 *  listening to LoaderInfo.uncaughtErrorEvents. It will NOT reach the
+	 *  <code>catch</code> block.
+	 *   
      *
      *  @param event The Event object that is dispatched into the event flow.
      *  If the event is being redispatched, a clone of the event is created automatically.


Mime
View raw message