Skip to content

Instantly share code, notes, and snippets.

@Misiur
Created July 14, 2016 18:05
Show Gist options
  • Save Misiur/9023d8d2616a16173cfa18c12e003b49 to your computer and use it in GitHub Desktop.
Save Misiur/9023d8d2616a16173cfa18c12e003b49 to your computer and use it in GitHub Desktop.
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