Finish MDL Dialog changing to -> (“showModal" in dialog)

Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/4cd45291
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/4cd45291
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/4cd45291

Branch: refs/heads/feature/mdl
Commit: 4cd45291f22fd6711b14a20830d84a96406047a5
Parents: f5e6a1b
Author: Carlos Rovira <[email protected]>
Authored: Sat Jan 21 00:48:23 2017 +0100
Committer: Carlos Rovira <[email protected]>
Committed: Sat Jan 21 00:48:23 2017 +0100

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/mdl/Dialog.as                   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4cd45291/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 78d11bd..0a0dcc6 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
@@ -110,7 +110,8 @@ package org.apache.flex.mdl
                                                
Application.topLevelApplication.addElement(this);
                                        }
 
-                                       if (!dialog["showModal"]) {
+                                       if (!("showModal" in dialog))
+                                       {
                                                
dialogPolyfill.registerDialog(dialog);
                                        }
                                }

Reply via email to