You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/04/23 15:21:43 UTC

git commit: [flex-asjs] [refs/heads/tlf] - Temporary work-around to compiler issue

Repository: flex-asjs
Updated Branches:
  refs/heads/tlf 8f164067e -> ca8afe2e8


Temporary work-around to compiler issue


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

Branch: refs/heads/tlf
Commit: ca8afe2e8a2b9ebcc615eb75de8c0a1fcee46ff4
Parents: 8f16406
Author: Harbs <ha...@in-tools.com>
Authored: Sun Apr 23 11:21:41 2017 -0400
Committer: Harbs <ha...@in-tools.com>
Committed: Sun Apr 23 11:21:41 2017 -0400

----------------------------------------------------------------------
 .../org/apache/flex/svg/GraphicContainer.as     | 29 ------------
 .../flex/org/apache/flex/svg/GraphicGroup.as    | 46 ++++++++++++++++++++
 2 files changed, 46 insertions(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ca8afe2e/frameworks/projects/HTML/src/main/flex/org/apache/flex/svg/GraphicContainer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/svg/GraphicContainer.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/svg/GraphicContainer.as
index 6b05fea..edd30e8 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/svg/GraphicContainer.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/svg/GraphicContainer.as
@@ -195,32 +195,3 @@ package org.apache.flex.svg
 	}
 }
 
-import org.apache.flex.core.ContainerBase;
-
-class GraphicGroup extends ContainerBase
-{
-	/**
-	 * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
-	 */
-	COMPILE::JS
-	override protected function createElement():org.apache.flex.core.WrappedHTMLElement
-	{
-		element = document.createElementNS('http://www.w3.org/2000/svg', 'g') as org.apache.flex.core.WrappedHTMLElement;
-
-		positioner = element;
-
-		// absolute positioned children need a non-null
-		// position value in the parent.  It might
-		// get set to 'absolute' if the container is
-		// also absolutely positioned
-		//positioner.style.position = 'relative';
-		element.flexjs_wrapper = this;
-
-		/*addEventListener('childrenAdded',
-		runLayoutHandler);
-		addEventListener('elementRemoved',
-		runLayoutHandler);*/
-
-		return element;
-	}
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ca8afe2e/frameworks/projects/HTML/src/main/flex/org/apache/flex/svg/GraphicGroup.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/svg/GraphicGroup.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/svg/GraphicGroup.as
new file mode 100644
index 0000000..2c972b2
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/svg/GraphicGroup.as
@@ -0,0 +1,46 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.flex.svg
+{
+	import org.apache.flex.core.ContainerBase;
+
+	public class GraphicGroup extends ContainerBase
+	{
+		/**
+		* @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+		*/
+		COMPILE::JS
+		override protected function createElement():org.apache.flex.core.WrappedHTMLElement
+		{
+			element = document.createElementNS('http://www.w3.org/2000/svg', 'g') as org.apache.flex.core.WrappedHTMLElement;
+
+			positioner = element;
+
+			// absolute positioned children need a non-null
+			// position value in the parent.  It might
+			// get set to 'absolute' if the container is
+			// also absolutely positioned
+			//positioner.style.position = 'relative';
+			element.flexjs_wrapper = this;
+
+			/*addEventListener('childrenAdded',
+			runLayoutHandler);
+			addEventListener('elementRemoved',
+			runLayoutHandler);*/
+
+			return element;
+		}
+	}
+
+}