flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [6/9] git commit: [flex-asjs] [refs/heads/develop] - need to handle removeElement
Date Thu, 27 Aug 2015 06:46:07 GMT
need to handle removeElement


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

Branch: refs/heads/develop
Commit: 2999ee0282c6e18ddbfc12a0fe9ecfff3e821722
Parents: f7de7d9
Author: Alex Harui <aharui@apache.org>
Authored: Wed Aug 26 17:43:10 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Aug 26 17:43:10 2015 -0700

----------------------------------------------------------------------
 .../Core/js/src/org/apache/flex/core/ContainerBase.js   | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2999ee02/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
index 6a66619..7bec248 100644
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
@@ -209,6 +209,18 @@ org.apache.flex.core.ContainerBase.prototype.getElementAt = function(index)
{
 };
 
 
+/**
+ * @param {Object} c The child element.
+ */
+org.apache.flex.core.ContainerBase.prototype.removeElement = function(c) {
+  if (this.supportsChromeChildren && org.apache.flex.utils.Language.is(c, org.apache.flex.core.IChrome))
{
+     this.actualParent.element.removeChild(c.element);
+  }
+  else {
+  }
+};
+
+
 Object.defineProperties(org.apache.flex.core.ContainerBase.prototype, {
     /** @export */
     MXMLDescriptor: {


Mime
View raw message