Repository: flex-asjs Updated Branches: refs/heads/dual cd01f3b58 -> 3d3914b4a
assign element earlier so width/heigh setters work Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/36be4ff7 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/36be4ff7 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/36be4ff7 Branch: refs/heads/dual Commit: 36be4ff78487d5e74bce0723efe9b647bb499c33 Parents: cd01f3b Author: Alex Harui <[email protected]> Authored: Mon Mar 6 23:40:24 2017 -0800 Committer: Alex Harui <[email protected]> Committed: Mon Mar 6 23:40:24 2017 -0800 ---------------------------------------------------------------------- .../Basic/src/main/flex/org/apache/flex/core/Application.as | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36be4ff7/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/Application.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/Application.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/Application.as index a7be814..c92ad95 100644 --- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/Application.as +++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/Application.as @@ -129,6 +129,11 @@ package org.apache.flex.core loaderInfo.addEventListener(flash.events.Event.INIT, initHandler); } + COMPILE::JS { + element = document.getElementsByTagName('body')[0]; + element.flexjs_wrapper = this; + element.className = 'Application'; + } } COMPILE::SWF @@ -590,10 +595,6 @@ package org.apache.flex.core COMPILE::JS public function start():void { - element = document.getElementsByTagName('body')[0]; - element.flexjs_wrapper = this; - element.className = 'Application'; - if (model is IBead) addBead(model as IBead); if (controller is IBead) addBead(controller as IBead);
