Created
July 14, 2016 18:05
-
-
Save Misiur/9023d8d2616a16173cfa18c12e003b49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/edge/core/macro/BuildSystem.hx b/src/edge/core/macro/BuildSystem.hx | |
index 1cf3887..a5ab3eb 100644 | |
--- a/src/edge/core/macro/BuildSystem.hx | |
+++ b/src/edge/core/macro/BuildSystem.hx | |
@@ -14,6 +14,9 @@ class BuildSystem { | |
macro public static function complete() : Array<Field> { | |
var fields = Context.getBuildFields(), | |
type = Context.getLocalClass().get(); | |
+ #if openfl | |
+ if (type.name == "DocumentClass") return fields; | |
+ #end | |
checkUpdate(fields); | |
injectToString(type, fields); | |
injectConstructor(type, fields); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment