flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/6] git commit: [flex-asjs] [refs/heads/spark] - get rid of noDispatchEvent parameter on addChild and friends
Date Fri, 03 Jun 2016 17:55:21 GMT
get rid of noDispatchEvent parameter on addChild and friends


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

Branch: refs/heads/spark
Commit: dca97977d29a5bdc33fa103af711c573244a9e10
Parents: ea5f249
Author: Alex Harui <aharui@apache.org>
Authored: Tue May 31 23:28:36 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue May 31 23:28:36 2016 -0700

----------------------------------------------------------------------
 .../org/apache/flex/charts/beads/ChartView.as   |  6 +-
 .../flex/charts/optimized/SVGChartDataGroup.as  |  8 +-
 .../flex/org/apache/flex/core/Application.as    |  9 ++-
 .../flex/org/apache/flex/core/ContainerBase.as  | 82 +++++++++++++++-----
 .../flex/core/ContainerBaseStrandChildren.as    | 15 ++--
 .../flex/org/apache/flex/core/IContainer.as     | 42 ++++++++++
 .../flex/org/apache/flex/core/IContentView.as   |  2 +-
 .../main/flex/org/apache/flex/core/IParent.as   |  9 ++-
 .../flex/org/apache/flex/core/IPopUpHost.as     |  2 +-
 .../apache/flex/core/ListBaseStrandChildren.as  | 15 ++--
 .../main/flex/org/apache/flex/core/UIBase.as    |  9 ++-
 .../apache/flex/utils/MXMLDataInterpreter.as    | 17 ++--
 .../org/apache/flex/createjs/Application.as     |  9 ++-
 .../flex/org/apache/flex/createjs/Container.as  | 26 +++++++
 .../org/apache/flex/createjs/core/UIBase.as     |  9 ++-
 .../flex/org/apache/flex/createjs/core/View.as  | 26 +++++++
 .../apache/flex/html/accessories/ToolTipBead.as |  3 +-
 .../org/apache/flex/html/beads/ContainerView.as | 15 ++--
 .../apache/flex/html/beads/DateChooserView.as   |  6 +-
 .../flex/html/beads/PanelWithControlBarView.as  |  8 +-
 .../flex/html/supportClasses/DataGroup.as       |  8 +-
 .../flex/org/apache/flex/mobile/ManagerBase.as  | 21 ++---
 .../org/apache/flex/mobile/ViewManagerBase.as   |  2 +-
 .../flex/mobile/beads/StackedViewManagerView.as |  3 +-
 .../flex/mobile/beads/TabbedViewManagerView.as  |  3 +-
 .../flex/mobile/beads/ToggleSwitchView.as       |  6 +-
 .../apache/flex/mobile/beads/ViewManagerView.as |  3 +-
 .../apache/flex/mobile/chrome/NavigationBar.as  |  2 +-
 .../org/apache/flex/mobile/chrome/ToolBar.as    |  2 +-
 29 files changed, 271 insertions(+), 97 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/beads/ChartView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/beads/ChartView.as b/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/beads/ChartView.as
index 393f3b0..b29f4cb 100644
--- a/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/beads/ChartView.as
+++ b/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/beads/ChartView.as
@@ -69,7 +69,8 @@ package org.apache.flex.charts.beads
 				var m1:Class = ValuesManager.valuesImpl.getValue(_strand, "iHorizontalAxisGroup");
 				_horizontalAxisGroup = new m1();
 				haxis.axisGroup = _horizontalAxisGroup;
-				IParent(_strand).addElement(_horizontalAxisGroup, false);
+				// should not dispatch change event
+				IParent(_strand).addElement(_horizontalAxisGroup);
 			}
 			
 			var vaxis:IVerticalAxisBead = _strand.getBeadByType(IVerticalAxisBead) as IVerticalAxisBead;
@@ -77,7 +78,8 @@ package org.apache.flex.charts.beads
 				var m2:Class = ValuesManager.valuesImpl.getValue(_strand, "iVerticalAxisGroup");
 				_verticalAxisGroup = new m2();
 				vaxis.axisGroup = _verticalAxisGroup;
-				IParent(_strand).addElement(_verticalAxisGroup, false);
+				// should not dispatch change event
+				IParent(_strand).addElement(_verticalAxisGroup);
 			}
 			
 			super.strand = value;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/optimized/SVGChartDataGroup.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/optimized/SVGChartDataGroup.as b/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/optimized/SVGChartDataGroup.as
index d7fc8af..cbad23d 100644
--- a/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/optimized/SVGChartDataGroup.as
+++ b/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/optimized/SVGChartDataGroup.as
@@ -142,14 +142,14 @@ package org.apache.flex.charts.optimized
 		 *  @playerversion AIR 2.6
 		 *  @productversion FlexJS 0.0
 		 */
-		override public function addElement(value:IVisualElement, dispatchEvent:Boolean = true):void
+		override public function addElement(value:IVisualElement):IVisualElement
 		{
 			_children.push(value);
 			
 			var base:UIBase = value as UIBase;
 			base.addedToParent();
 			
-			super.addElement(value, dispatchEvent);
+			return super.addElement(value);
 		}
 		
 		/**
@@ -161,7 +161,7 @@ package org.apache.flex.charts.optimized
 		 *  @playerversion AIR 2.6
 		 *  @productversion FlexJS 0.0
 		 */
-		override public function addElementAt(value:IVisualElement, index:int, dispatchEvent:Boolean = true):void
+		override public function addElementAt(value:IVisualElement, index:int):IVisualElement
 		{
 			if (index >= _children.length) _children.push(value);
 			else _children.splice(index, 0, value);
@@ -169,7 +169,7 @@ package org.apache.flex.charts.optimized
 			var base:UIBase = value as UIBase;
 			base.addedToParent();
 			
-			super.addElementAt(value, index, dispatchEvent);
+			return super.addElementAt(value, index);
 		}
 		
 		/**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
index 697f893..49b85eb 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
@@ -416,7 +416,7 @@ package org.apache.flex.core
          *  @productversion FlexJS 0.0
 		 *  @flexjsignorecoercion org.apache.flex.core.IUIBase
          */
-        public function addElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+        public function addElement(c:IVisualElement):IVisualElement
         {
             COMPILE::AS3 {
                 if (c is IUIBase)
@@ -432,6 +432,7 @@ package org.apache.flex.core
                 this.element.appendChild(ui.element);
                 ui.addedToParent();
             }
+			return c;
         }
 
         /**
@@ -443,7 +444,7 @@ package org.apache.flex.core
          *  @productversion FlexJS 0.0
 		 *  @flexjsignorecoercion org.apache.flex.core.IUIBase
          */
-        public function addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean = true):void
+        public function addElementAt(c:IVisualElement, index:int):IVisualElement
         {
             COMPILE::AS3 {
                 if (c is IUIBase)
@@ -467,6 +468,7 @@ package org.apache.flex.core
                 }
 
             }
+			return c;
         }
 
         /**
@@ -527,7 +529,7 @@ package org.apache.flex.core
          *  @productversion FlexJS 0.0
 		 *  @flexjsignorecoercion org.apache.flex.core.IUIBase
          */
-        public function removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+        public function removeElement(c:IVisualElement):IVisualElement
         {
             COMPILE::AS3 {
                 if (c is IUIBase)
@@ -541,6 +543,7 @@ package org.apache.flex.core
 				var ui:IUIBase = c as IUIBase;
                 element.removeChild(ui.element);
             }
+			return c;
         }
 
         /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBase.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBase.as
index 1609c2a..919fd7f 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBase.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBase.as
@@ -132,49 +132,95 @@ package org.apache.flex.core
         /**
          *  @private
          */
-        override public function addElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+        override public function addElement(c:IVisualElement):IVisualElement
         {
 			var contentView:IParent = view as IParent;
 			if (contentView != null) {
-				contentView.addElement(c, dispatchEvent);
-                if (dispatchEvent)
-                    this.dispatchEvent(new Event("childrenAdded"));
+				contentView.addElement(c);
+                this.dispatchEvent(new Event("childrenAdded"));
 			}
 			else {
 				super.addElement(c);
 			}
+			return c;
         }
         
         /**
          *  @private
          */
-        override public function addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean = true):void
+        public function addElementNoChangeEvent(c:IVisualElement):IVisualElement
         {
 			var contentView:IParent = view as IParent;
 			if (contentView != null) {
-				contentView.addElementAt(c, index, dispatchEvent);
-                if (dispatchEvent)
-                    this.dispatchEvent(new Event("childrenAdded"));
+				contentView.addElement(c);
+			}
+			else {
+				super.addElement(c);
+			}
+			return c;
+        }
+		
+        /**
+         *  @private
+         */
+        override public function addElementAt(c:IVisualElement, index:int):IVisualElement
+        {
+			var contentView:IParent = view as IParent;
+			if (contentView != null) {
+				contentView.addElementAt(c, index);
+                this.dispatchEvent(new Event("childrenAdded"));
 			}
 			else {
 				super.addElementAt(c, index);
 			}
+			return c;
+        }
+
+
+        /**
+         *  @private
+         */
+        public function addElementAtNoChangeEvent(c:IVisualElement, index:int):IVisualElement
+        {
+			var contentView:IParent = view as IParent;
+			if (contentView != null) {
+				contentView.addElementAt(c, index);
+			}
+			else {
+				super.addElementAt(c, index);
+			}
+			return c;
+        }
+        
+        /**
+         *  @private
+         */
+        override public function removeElement(c:IVisualElement):IVisualElement
+        {
+			var contentView:IParent = view as IParent;
+			if (contentView != null) {
+				contentView.removeElement(c);
+                this.dispatchEvent(new Event("childrenRemoved"));
+			}
+			else {
+				super.removeElement(c);
+			}
+			return c;
         }
         
         /**
          *  @private
          */
-        override public function removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+        public function removeElementNoChangeEvent(c:IVisualElement):IVisualElement
         {
 			var contentView:IParent = view as IParent;
 			if (contentView != null) {
-				contentView.removeElement(c, dispatchEvent);
-                if (dispatchEvent)
-                    this.dispatchEvent(new Event("childrenRemoved"));
+				contentView.removeElement(c);
 			}
 			else {
 				super.removeElement(c);
 			}
+			return c;
         }
         
         /**
@@ -229,9 +275,9 @@ package org.apache.flex.core
          * @suppress {undefinedNames}
 		 * Support strandChildren.
 		 */
-		public function $addElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function $addElement(c:IVisualElement):void
 		{
-			super.addElement(c, dispatchEvent);
+			super.addElement(c);
 		}
 		
 		/**
@@ -239,9 +285,9 @@ package org.apache.flex.core
          * @suppress {undefinedNames}
 		 * Support strandChildren.
 		 */
-		public function $addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean = true):void
+		public function $addElementAt(c:IVisualElement, index:int):void
 		{
-			super.addElementAt(c, index, dispatchEvent);
+			super.addElementAt(c, index);
 		}
 		
 		/**
@@ -249,9 +295,9 @@ package org.apache.flex.core
          * @suppress {undefinedNames}
 		 * Support strandChildren.
 		 */
-		public function $removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function $removeElement(c:IVisualElement):void
 		{
-			super.removeElement(c, dispatchEvent);
+			super.removeElement(c);
 		}
 		
 		/**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBaseStrandChildren.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBaseStrandChildren.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBaseStrandChildren.as
index a5afbee..df392ef 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBaseStrandChildren.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBaseStrandChildren.as
@@ -59,25 +59,28 @@ package org.apache.flex.core
 		/**
 		 *  @private
 		 */
-		public function addElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function addElement(c:IVisualElement):IVisualElement
 		{
-			owner.$addElement(c, dispatchEvent);
+			owner.$addElement(c);
+			return c;
 		}
 		
 		/**
 		 *  @private
 		 */
-		public function addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean = true):void
+		public function addElementAt(c:IVisualElement, index:int):IVisualElement
 		{
-			owner.$addElementAt(c, index, dispatchEvent);
+			owner.$addElementAt(c, index);
+			return c;
 		}
 		
 		/**
 		 *  @private
 		 */
-		public function removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function removeElement(c:IVisualElement):IVisualElement
 		{
-			owner.$removeElement(c, dispatchEvent);
+			owner.$removeElement(c);
+			return c;
 		}
 		
 		/**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IContainer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IContainer.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IContainer.as
index e3b6c9d..9bfd462 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IContainer.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IContainer.as
@@ -33,6 +33,48 @@ package org.apache.flex.core
     public interface IContainer extends IParent
 	{
         /**
+         *  Containers have an arbitrary and dynamic set of
+		 *  of children and usually dispatch notifications
+		 *  and do other work when the set changes.  These
+		 *  APIs allow the set to be changed without notification
+		 *  which can be beneficial for performance.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		function addElementNoChangeEvent(element:IVisualElement):IVisualElement;
+		
+        /**
+         *  Containers have an arbitrary and dynamic set of
+		 *  of children and usually dispatch notifications
+		 *  and do other work when the set changes.  These
+		 *  APIs allow the set to be changed without notification
+		 *  which can be beneficial for performance.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		function addElementAtNoChangeEvent(element:IVisualElement, index:int):IVisualElement;
+		
+        /**
+         *  Containers have an arbitrary and dynamic set of
+		 *  of children and usually dispatch notifications
+		 *  and do other work when the set changes.  These
+		 *  APIs allow the set to be changed without notification
+		 *  which can be beneficial for performance.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		function removeElementNoChangeEvent(element:IVisualElement):IVisualElement;
+		
+        /**
          *  This method is called after children have been
          *  added to the container so the container doesn't
          *  have to re-layout as each child is added.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IContentView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IContentView.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IContentView.as
index a6b64eb..c6ecb78 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IContentView.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IContentView.as
@@ -32,7 +32,7 @@ package org.apache.flex.core
 		function get height():Number;
 		function set height(value:Number):void;
 
-		function addElement(value:IVisualElement, dispatchEvent:Boolean = true):void;
+		function addElement(value:IVisualElement):IVisualElement;
 		function removeAllElements():void;
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IParent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IParent.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IParent.as
index 26620e3..4ec9650 100755
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IParent.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IParent.as
@@ -35,13 +35,14 @@ package org.apache.flex.core
          * 
          *  @param c The subcomponent to add.
          *  @param dispatchEvent Whether to dispatch an event after adding the child.
+         *  @return The subcomponent to add.
          * 
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
          *  @productversion FlexJS 0.0
          */
-        function addElement(c:IVisualElement, dispatchEvent:Boolean = true):void;
+        function addElement(c:IVisualElement):IVisualElement;
 
         /**
          *  Add a component to the parent.
@@ -49,13 +50,14 @@ package org.apache.flex.core
          *  @param c The subcomponent to add.
          *  @param c The index where the subcomponent should be added.
          *  @param dispatchEvent Whether to dispatch an event after adding the child.
+         *  @return The subcomponent to add.
          * 
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
          *  @productversion FlexJS 0.0
          */
-        function addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean = true):void;
+        function addElementAt(c:IVisualElement, index:int):IVisualElement;
         
         /**
          *  Gets the index of this subcomponent.
@@ -75,13 +77,14 @@ package org.apache.flex.core
          * 
          *  @param c The subcomponent to remove.
          *  @param dispatchEvent Whether to dispatch an event after removing the child.
+         *  @return The subcomponent to remove.
          * 
          *  @langversion 3.0
          *  @playerversion Flash 10.2
          *  @playerversion AIR 2.6
          *  @productversion FlexJS 0.0
          */
-       function removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void;
+       function removeElement(c:IVisualElement):IVisualElement;
        
        /**
         *  The number of elements in the parent.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IPopUpHost.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IPopUpHost.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IPopUpHost.as
index 65f1334..acc91b7 100755
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IPopUpHost.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/IPopUpHost.as
@@ -27,7 +27,7 @@ package org.apache.flex.core
      *  @playerversion AIR 2.6
      *  @productversion FlexJS 0.0
      */
-    public interface IPopUpHost extends IParent
+    public interface IPopUpHost extends IContainer
 	{
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ListBaseStrandChildren.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ListBaseStrandChildren.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ListBaseStrandChildren.as
index 642817d..08ae8ed 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ListBaseStrandChildren.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ListBaseStrandChildren.as
@@ -60,25 +60,28 @@ package org.apache.flex.core
 		/**
 		 *  @private
 		 */
-		public function addElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function addElement(c:IVisualElement):IVisualElement
 		{
-			owner.$addElement(c, dispatchEvent);
+			owner.$addElement(c);
+			return c;
 		}
 		
 		/**
 		 *  @private
 		 */
-		public function addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean = true):void
+		public function addElementAt(c:IVisualElement, index:int):IVisualElement
 		{
-			owner.$addElementAt(c, index, dispatchEvent);
+			owner.$addElementAt(c, index);
+			return c;
 		}
 		
 		/**
 		 *  @private
 		 */
-		public function removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function removeElement(c:IVisualElement):IVisualElement
 		{
-			owner.$removeElement(c, dispatchEvent);
+			owner.$removeElement(c);
+			return c;
 		}
 		
 		/**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Core/src/main/flex/org/apache/flex/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/UIBase.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/UIBase.as
index d71e35f..32b1d71 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/UIBase.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/UIBase.as
@@ -1114,7 +1114,7 @@ package org.apache.flex.core
          *  @productversion FlexJS 0.0
 		 *  @flexjsignorecoercion org.apache.flex.core.IUIBase
          */
-		public function addElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function addElement(c:IVisualElement):IVisualElement
 		{
             COMPILE::AS3
             {
@@ -1132,6 +1132,7 @@ package org.apache.flex.core
                 element.appendChild(ui.positioner);
                 ui.addedToParent();
             }
+			return c;
 		}
         
         /**
@@ -1143,7 +1144,7 @@ package org.apache.flex.core
          *  @productversion FlexJS 0.0
 		 *  @flexjsignorecoercion org.apache.flex.core.IUIBase
          */
-        public function addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean = true):void
+        public function addElementAt(c:IVisualElement, index:int):IVisualElement
         {
             COMPILE::AS3
             {
@@ -1168,6 +1169,7 @@ package org.apache.flex.core
                     ui.addedToParent();
                 }
             }
+			return c;
         }
         
         /**
@@ -1232,7 +1234,7 @@ package org.apache.flex.core
          *  @productversion FlexJS 0.0
 		 *  @flexjsignorecoercion org.apache.flex.core.IUIBase
          */
-        public function removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+        public function removeElement(c:IVisualElement):IVisualElement
         {
             COMPILE::AS3
             {
@@ -1246,6 +1248,7 @@ package org.apache.flex.core
 				var ui:IUIBase = c as IUIBase;
                 element.removeChild(ui.element);
             }
+			return c;
         }
 		
         /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as
index 946b17a..d444c93 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as
@@ -295,16 +295,13 @@ public class MXMLDataInterpreter
         {
             comp.setMXMLDescriptor(document, children);                
         }
-        COMPILE::AS3
-        {
-            if (parent && comp is IVisualElement)
-                parent.addElement(comp as IVisualElement, !(parent is IContainer));
-        }
-        COMPILE::JS
-        {
-            if (parent && comp is IUIBase)
-                parent.addElement(comp as IUIBase, !(parent is IContainer));
-        }
+		if (parent && comp is IVisualElement)
+		{
+			if (parent is IContainer)
+				(parent as IContainer).addElementNoChangeEvent(comp as IVisualElement);
+			else
+				parent.addElement(comp as IVisualElement);
+		}
         
         if (children)
         {

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/Application.as b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/Application.as
index 3e67071..284f66c 100644
--- a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/Application.as
+++ b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/Application.as
@@ -322,11 +322,12 @@ package org.apache.flex.createjs
          *  @flexjsignorecoercion createjs.DisplayObject
          *  @flexjsignorecoercion org.apache.flex.core.IUIBase
 		 */
-		public function addElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function addElement(c:IVisualElement):IVisualElement
 		{
 			var ui:IUIBase = c as IUIBase;
 			stage.addChild(ui.element as DisplayObject);
 			ui.addedToParent();
+			return c;
 		}
 		
 		/**
@@ -339,11 +340,12 @@ package org.apache.flex.createjs
          *  @flexjsignorecoercion createjs.DisplayObject
          *  @flexjsignorecoercion org.apache.flex.core.IUIBase
 		 */
-		public function addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean = true):void
+		public function addElementAt(c:IVisualElement, index:int):IVisualElement
 		{
 			var ui:IUIBase = c as IUIBase;
 			stage.addChildAt(ui.element as DisplayObject, index);
 			ui.addedToParent();
+			return c;
 		}
 		
 		/**
@@ -386,9 +388,10 @@ package org.apache.flex.createjs
 		 *  @productversion FlexJS 0.0
          *  @flexjsignorecoercion org.apache.flex.core.IUIBase
 		 */
-		public function removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function removeElement(c:IVisualElement):IVisualElement
 		{
 			stage.removeChild((c as IUIBase).element as DisplayObject);
+			return c;
 		}
 		
 		/**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/Container.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/Container.as b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/Container.as
index 697c41e..55ccdaf 100644
--- a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/Container.as
+++ b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/Container.as
@@ -26,6 +26,7 @@ package org.apache.flex.createjs
 	import org.apache.flex.core.IStatesObject;
 	import org.apache.flex.core.IStatesImpl;
 	import org.apache.flex.core.IContainer;
+	import org.apache.flex.core.IVisualElement;
 	import org.apache.flex.core.ValuesManager;
 	import org.apache.flex.events.Event;
 	import org.apache.flex.events.ValueChangeEvent;
@@ -297,5 +298,30 @@ package org.apache.flex.createjs
 		{
 			_transitions = value;   
 		}
+		
+		/**
+		 *  @private
+		 */
+		public function addElementNoChangeEvent(c:IVisualElement):IVisualElement
+		{
+			return addElement(c);
+		}
+		
+		/**
+		 *  @private
+		 */
+		public function addElementAtNoChangeEvent(c:IVisualElement, index:int):IVisualElement
+		{
+			return addElementAt(c, index);
+		}
+
+		/**
+		 *  @private
+		 */
+		public function removeElementNoChangeEvent(c:IVisualElement):IVisualElement
+		{
+			return removeElement(c);
+		}
+
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/core/UIBase.as b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/core/UIBase.as
index a33ca13..c8c4f35 100644
--- a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/core/UIBase.as
+++ b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/core/UIBase.as
@@ -337,9 +337,10 @@ package org.apache.flex.createjs.core
          * @flexjsignorecoercion createjs.DisplayObject
          * @flexjsignorecoercion org.apache.flex.core.IUIBase
          */
-        public function addElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+        public function addElement(c:IVisualElement):IVisualElement
         {
             (element as Container).addChild((c as IUIBase).element as DisplayObject);
+			return c;
         }
         
         /**
@@ -347,9 +348,10 @@ package org.apache.flex.createjs.core
          * @flexjsignorecoercion createjs.DisplayObject
          * @flexjsignorecoercion org.apache.flex.core.IVisualElement
          */
-        public function addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean = true):void
+        public function addElementAt(c:IVisualElement, index:int):IVisualElement
         {
             (element as Container).addChildAt((c as IUIBase).element as DisplayObject, index);
+			return c;
         }
         
         
@@ -369,9 +371,10 @@ package org.apache.flex.createjs.core
          * @flexjsignorecoercion createjs.DisplayObject
          * @flexjsignorecoercion org.apache.flex.core.IVisualElement
          */
-        public function removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+        public function removeElement(c:IVisualElement):IVisualElement
         {
             (element as Container).removeChild((c as IUIBase).element as DisplayObject);
+			return c;
         }
         
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/core/View.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/core/View.as b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/core/View.as
index 81cf83d..339ad0b 100644
--- a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/core/View.as
+++ b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/core/View.as
@@ -24,6 +24,7 @@ package org.apache.flex.createjs.core
 	import org.apache.flex.core.IPopUpHost;
 	import org.apache.flex.core.IMXMLDocument;
 	import org.apache.flex.core.IStatesImpl;
+	import org.apache.flex.core.IVisualElement;
 	import org.apache.flex.core.ValuesManager;
 	import org.apache.flex.events.Event;
 	import org.apache.flex.events.ValueChangeEvent;
@@ -321,5 +322,30 @@ package org.apache.flex.createjs.core
 		{
 			_transitions = value;   
 		}
+		
+		/**
+		 *  @private
+		 */
+		public function addElementNoChangeEvent(c:IVisualElement):IVisualElement
+		{
+			return addElement(c);
+		}
+		
+		/**
+		 *  @private
+		 */
+		public function addElementAtNoChangeEvent(c:IVisualElement, index:int):IVisualElement
+		{
+			return addElementAt(c, index);
+		}
+
+		/**
+		 *  @private
+		 */
+		public function removeElementNoChangeEvent(c:IVisualElement):IVisualElement
+		{
+			return removeElement(c);
+		}
+
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
index 64d04bf..063abcd 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
@@ -112,7 +112,8 @@ package org.apache.flex.html.accessories
             var pt:Point = determinePosition(event, event.target);
             tt.x = pt.x;
             tt.y = pt.y;
-            host.addElement(tt, false); // don't trigger a layout
+			
+            host.addElementNoChangeEvent(tt); // don't trigger a layout
 		}
 		
 		/**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/ContainerView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/ContainerView.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/ContainerView.as
index 3813c5b..7c9d0c3 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/ContainerView.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/ContainerView.as
@@ -144,17 +144,17 @@ package org.apache.flex.html.beads
 		/**
 		 * @private
 		 */
-		public function addElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function addElement(c:IVisualElement):IVisualElement
 		{
-			contentView.addElement(c, dispatchEvent);
+			return contentView.addElement(c);
 		}
 		
 		/**
 		 * @private
 		 */
-		public function addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean = true):void
+		public function addElementAt(c:IVisualElement, index:int):IVisualElement
 		{
-			contentView.addElementAt(c, index, dispatchEvent);
+			return contentView.addElementAt(c, index);
 		}
 		
 		/**
@@ -168,9 +168,9 @@ package org.apache.flex.html.beads
 		/**
 		 * @private
 		 */
-		public function removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		public function removeElement(c:IVisualElement):IVisualElement
 		{
-			contentView.removeElement(c, dispatchEvent);
+			return contentView.removeElement(c);
 		}
 		
 		/**
@@ -204,7 +204,8 @@ package org.apache.flex.html.beads
 			
             createViewport();
 			
-			(host as IContentViewHost).strandChildren.addElement(viewport.contentView, false);
+			// this should not trigger a childAdded event
+			(host as IContentViewHost).strandChildren.addElement(viewport.contentView);
 			
 			displayBackgroundAndBorder(host as UIBase);
 			

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DateChooserView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DateChooserView.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DateChooserView.as
index 5abf4c4..db09068 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DateChooserView.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DateChooserView.as
@@ -150,7 +150,7 @@ package org.apache.flex.html.beads
 			dayContainer = new Container();
 			var tileLayout:TileLayout = new TileLayout();
 			dayContainer.addBead(tileLayout);
-            UIBase(_strand).addElement(dayContainer, false);
+            UIBase(_strand).addElement(dayContainer);
             
 			tileLayout.numColumns = 7;
 			dayContainer.x = 0;
@@ -167,7 +167,7 @@ package org.apache.flex.html.beads
 				var dayName:DateChooserButton = new DateChooserButton();
 				dayName.text = model.dayNames[i];
 				dayName.dayOfMonth = 0;
-				dayContainer.addElement(dayName, false);
+				dayContainer.addElementNoChangeEvent(dayName);
 			}
 			
 			_dayButtons = new Array();
@@ -175,7 +175,7 @@ package org.apache.flex.html.beads
 			for(i=0; i < 42; i++) {
 				var date:DateChooserButton = new DateChooserButton();
 				date.text = String(i+1);
-				dayContainer.addElement(date, false);
+				dayContainer.addElementNoChangeEvent(date);
 				dayButtons.push(date);
 			}
 			

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/PanelWithControlBarView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/PanelWithControlBarView.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/PanelWithControlBarView.as
index 8dfcd42..1494df0 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/PanelWithControlBarView.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/PanelWithControlBarView.as
@@ -123,7 +123,7 @@ package org.apache.flex.html.beads
 				_controlBar.height = 30;
 				
 				for each(var comp:IUIBase in controlBarItems) {
-					_controlBar.addElement(comp, false);
+					_controlBar.addElementNoChangeEvent(comp);
 				}
 			}
 			
@@ -134,10 +134,12 @@ package org.apache.flex.html.beads
 		{
 			super.completeSetup();
 			
-			(_strand as IContentViewHost).strandChildren.addElement(titleBar, false);
+			// should not generate change event
+			(_strand as IContentViewHost).strandChildren.addElement(titleBar);
 			
 			if (controlBar) {
-				(_strand as IContentViewHost).strandChildren.addElement(_controlBar, false);
+				// should not generate change event
+				(_strand as IContentViewHost).strandChildren.addElement(_controlBar);
 			}
 		}
 		

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataGroup.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataGroup.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataGroup.as
index 8fe8b22..50e3682 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataGroup.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataGroup.as
@@ -59,21 +59,22 @@ package org.apache.flex.html.supportClasses
 		/**
 		 * @private
 		 */
-		override public function addElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		override public function addElement(c:IVisualElement):IVisualElement
 		{
-			super.addElement(c, dispatchEvent);
+			super.addElement(c);
 			
 			var newEvent:ItemAddedEvent = new ItemAddedEvent("itemAdded");
 			newEvent.item = c;
 			
 			var strand:IEventDispatcher = parent as IEventDispatcher;
 			strand.dispatchEvent(newEvent);
+			return c;
 		}
 		
 		/**
 		 * @private
 		 */
-		override public function removeElement(c:IVisualElement, dispatchEvent:Boolean = true):void
+		override public function removeElement(c:IVisualElement):IVisualElement
 		{	
 			super.removeElement(c, dispatchEvent);
 			
@@ -82,6 +83,7 @@ package org.apache.flex.html.supportClasses
 			
 			var strand:IEventDispatcher = parent as IEventDispatcher;
 			strand.dispatchEvent(newEvent);
+			return c;
 		}
 
         /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ManagerBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ManagerBase.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ManagerBase.as
index 8861131..87f2fa9 100644
--- a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ManagerBase.as
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ManagerBase.as
@@ -119,43 +119,46 @@ package org.apache.flex.mobile
 		 *  @playerversion AIR 2.6
 		 *  @productversion FlexJS 0.0
 		 */
-		override public function addElement(c:IVisualElement, dispatchEvent:Boolean=true):void
+		override public function addElement(c:IVisualElement):IVisualElement
 		{
 			if (c is IChrome) {
-				super.addElementAt(c,0,dispatchEvent);
+				super.addElementAt(c, 0);
 			}
 			else {
-				_contentArea.addElement(c, dispatchEvent);
+				_contentArea.addElement(c);
 //				(c as UIBase).setWidthAndHeight(_contentArea.width, _contentArea.height, false);
 //				(c as UIBase).width = _contentArea.width;
 //				(c as UIBase).height = _contentArea.height;
 			}
+			return c;
 		}
 		
 		/**
 		 * @private.
 		 */
-		override public function addElementAt(c:IVisualElement, index:int, dispatchEvent:Boolean=true):void
+		override public function addElementAt(c:IVisualElement, index:int):IVisualElement
 		{
 			if (c is IChrome) {
-				super.addElementAt(c, index, dispatchEvent);
+				super.addElementAt(c, index);
 			}
 			else {
-				_contentArea.addElement(c, dispatchEvent);
+				_contentArea.addElement(c);
 			}
+			return c;
 		}
 		
 		/**
 		 * @private
 		 */
-		override public function removeElement(c:IVisualElement, dispatchEvent:Boolean=true):void
+		override public function removeElement(c:IVisualElement):IVisualElement
 		{
 			if (c is IChrome) {
-				super.removeElement(c, dispatchEvent);
+				super.removeElement(c);
 			}
 			else {
-				_contentArea.removeElement(c, dispatchEvent);
+				_contentArea.removeElement(c);
 			}
+			return c;
 		}
 		
 		/**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ViewManagerBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ViewManagerBase.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ViewManagerBase.as
index 0da3f4d..b4d8be6 100644
--- a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ViewManagerBase.as
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/ViewManagerBase.as
@@ -173,7 +173,7 @@ package org.apache.flex.mobile
 					var view:IView = ViewManagerModel(model).views[i] as IView;
 					view.viewManager = this;
 					if (i == 0) {
-						addElement(view, true);
+						addElement(view);
 					}
 				}
 				ViewManagerModel(model).selectedIndex = 0;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/StackedViewManagerView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/StackedViewManagerView.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/StackedViewManagerView.as
index fd1a58b..3ce8af4 100644
--- a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/StackedViewManagerView.as
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/StackedViewManagerView.as
@@ -65,7 +65,8 @@ package org.apache.flex.mobile.beads
 				_toolBar = new ToolBar();
 				_toolBar.controls = model.toolBarItems;
 				_toolBar.addBead(new HorizontalLayout());
-				UIBase(value).addElement(_toolBar,false);
+				// no event is expected
+				UIBase(value).addElement(_toolBar);
 			}
 			
 			super.strand = value;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/TabbedViewManagerView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/TabbedViewManagerView.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/TabbedViewManagerView.as
index be20d2c..b88ef40 100644
--- a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/TabbedViewManagerView.as
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/TabbedViewManagerView.as
@@ -72,7 +72,8 @@ package org.apache.flex.mobile.beads
 			_tabBar.dataProvider = model.views;
 			_tabBar.labelField = "title";
 			_tabBar.addEventListener("change",handleButtonBarChange);
-			UIBase(_strand).addElement(_tabBar, false);
+			// no event is expected
+			UIBase(_strand).addElement(_tabBar);
 			
 			super.strand = value;
 		}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ToggleSwitchView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ToggleSwitchView.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ToggleSwitchView.as
index fe35d45..aa6fc51 100644
--- a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ToggleSwitchView.as
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ToggleSwitchView.as
@@ -94,10 +94,12 @@ package org.apache.flex.mobile.beads
 			model.addEventListener("selectedChange", toggleChangedHandler);
 			
 			boundingBox = new Rect();
-			UIBase(host).addElement(boundingBox, false);
+			// no event is expected
+			UIBase(host).addElement(boundingBox);
 			
 			actualSwitch = new Rect();
-			UIBase(host).addElement(actualSwitch, false);
+			// no event is expected
+			UIBase(host).addElement(actualSwitch);
 			
 			layoutChromeElements();
 		}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ViewManagerView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ViewManagerView.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ViewManagerView.as
index 59baf94..99f379d 100644
--- a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ViewManagerView.as
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/beads/ViewManagerView.as
@@ -95,7 +95,8 @@ package org.apache.flex.mobile.beads
 				_navigationBar = new NavigationBar();
 				_navigationBar.controls = model.navigationBarItems;
 				_navigationBar.addBead(new HorizontalLayout());
-				UIBase(_strand).addElement(_navigationBar, false);
+				// no event is expected
+				UIBase(_strand).addElement(_navigationBar);
 			}
 		}
 		

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/chrome/NavigationBar.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/chrome/NavigationBar.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/chrome/NavigationBar.as
index 5e7873e..4b6509f 100644
--- a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/chrome/NavigationBar.as
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/chrome/NavigationBar.as
@@ -82,7 +82,7 @@ package org.apache.flex.mobile.chrome
 			
 			for (var i:int=0; i < _controls.length; i++)
 			{
-				addElement( _controls[i], false );
+				addElementNoChangeEvent( _controls[i] );
 				
 				var ctrl:IEventDispatcher = _controls[i] as IEventDispatcher;
 				ctrl.addEventListener("show", handleVisibilityChange);

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dca97977/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/chrome/ToolBar.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/chrome/ToolBar.as b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/chrome/ToolBar.as
index af63d49..fc84556 100644
--- a/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/chrome/ToolBar.as
+++ b/frameworks/projects/Mobile/src/main/flex/org/apache/flex/mobile/chrome/ToolBar.as
@@ -71,7 +71,7 @@ package org.apache.flex.mobile.chrome
 			
 			for (var i:int=0; i < _controls.length; i++)
 			{
-				addElement( _controls[i], false );
+				addElementNoChangeEvent( _controls[i] );
 			}
 			
 			dispatchEvent(new Event("layoutNeeded"));


Mime
View raw message