Minor HTML5 window init fix

This commit is contained in:
Joshua Granick
2018-08-09 10:51:41 -07:00
parent e93c2fa4ae
commit 8d8ee345b5
2 changed files with 3 additions and 0 deletions

View File

@@ -88,6 +88,8 @@ class HTML5Window {
var attributes = parent.__attributes;
if (!Reflect.hasField (attributes, "context")) attributes.context = {};
renderType = attributes.context.type;
if (Reflect.hasField (attributes, "element")) {
parent.element = attributes.element;

View File

@@ -43,6 +43,7 @@ typedef RenderContextAttributes = {
The type of render context requested
**/
@:optional var type:RenderContextType;
@:optional var version:String;
/**