You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2017/02/21 16:12:06 UTC

[2/3] git commit: [flex-asjs] [refs/heads/feature/spriteflexjs-refactor] - - Added DEFINES to include the HTML import and code only in the JS compilation

- Added DEFINES to include the HTML import and code only in the JS compilation


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

Branch: refs/heads/feature/spriteflexjs-refactor
Commit: d3b47ac2a9a8a0d7bced9e8f77f4826d67cc3e4b
Parents: a6cb0b4
Author: Christofer Dutz <ch...@codecentric.de>
Authored: Fri Feb 17 17:25:38 2017 +0100
Committer: Christofer Dutz <ch...@codecentric.de>
Committed: Fri Feb 17 17:25:38 2017 +0100

----------------------------------------------------------------------
 frameworks/projects/spriteflexjs/src/main/flex/SomeClass.as | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d3b47ac2/frameworks/projects/spriteflexjs/src/main/flex/SomeClass.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/SomeClass.as b/frameworks/projects/spriteflexjs/src/main/flex/SomeClass.as
index 137beef..2e53fd4 100644
--- a/frameworks/projects/spriteflexjs/src/main/flex/SomeClass.as
+++ b/frameworks/projects/spriteflexjs/src/main/flex/SomeClass.as
@@ -20,9 +20,12 @@ package
 {
 	public class SomeClass 
 	{
-		public var canvas:HTMLCanvasElement;
-		public var c2d:CanvasRenderingContext2D;
+        COMPILE::JS {
+            public var canvas:HTMLCanvasElement;
+            public var c2d:CanvasRenderingContext2D;
+        }
 
+        COMPILE::JS
 		public function start2():void
 		{
 			var button:Element = document.createElement("button");