You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/02/22 17:46:49 UTC
git commit: [flex-asjs] [refs/heads/develop] - Removed relience of
mdl dialog having reference to the Application
Repository: flex-asjs
Updated Branches:
refs/heads/develop 2659d5efa -> bc085c704
Removed relience of mdl dialog having reference to the Application
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bc085c70
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bc085c70
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bc085c70
Branch: refs/heads/develop
Commit: bc085c704448234395a51f5f0438101d0a822c23
Parents: 2659d5e
Author: Harbs <ha...@in-tools.com>
Authored: Wed Feb 22 19:46:42 2017 +0200
Committer: Harbs <ha...@in-tools.com>
Committed: Wed Feb 22 19:46:42 2017 +0200
----------------------------------------------------------------------
.../src/main/flex/org/apache/flex/mdl/Dialog.as | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bc085c70/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Dialog.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Dialog.as b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Dialog.as
index 78c79c3..cbe88aa 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Dialog.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Dialog.as
@@ -96,7 +96,6 @@ package org.apache.flex.mdl
/**
* This function make the dialog be added to document.body only once
- * The parent in MDL must be the Application (IPopUpHost) as MDL requisite
*
* @langversion 3.0
* @playerversion Flash 10.2
@@ -110,11 +109,9 @@ package org.apache.flex.mdl
if(!lockDialogCreation)
{
lockDialogCreation = true;
-
- if(Application.topLevelApplication != null)
- {
- Application.topLevelApplication.addElement(this);
- }
+ var body:HTMLElement = document.getElementsByTagName('body')[0];
+ body.appendChild(element);
+ this.addedToParent();
if (!("showModal" in dialog))
{