You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2018/06/11 18:24:30 UTC

[royale-asjs] branch feature/revert-refactor updated: Added open getter for Dialog

This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch feature/revert-refactor
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/revert-refactor by this push:
     new 1d5c0c3  Added open getter for Dialog
1d5c0c3 is described below

commit 1d5c0c311b9070ba39b530b39f143285288710ef
Author: Harbs <ha...@in-tools.com>
AuthorDate: Mon Jun 11 21:24:21 2018 +0300

    Added open getter for Dialog
---
 .../src/main/royale/org/apache/royale/mdl/Dialog.as    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Dialog.as b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Dialog.as
index 99bfcb2..56f376d 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Dialog.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Dialog.as
@@ -126,6 +126,7 @@ package org.apache.royale.mdl
 		public function showModal():void
 		{
 			prepareDialog();
+			_open = true;
 
 			COMPILE::JS
 			{
@@ -147,6 +148,7 @@ package org.apache.royale.mdl
 		public function show():void
 		{
 			prepareDialog();
+			_open = true;
 
 			COMPILE::JS
 			{
@@ -164,10 +166,26 @@ package org.apache.royale.mdl
 		 */
 		public function close():void
 		{
+			_open = false;
 			COMPILE::JS
 			{
 				dialog.close();
 			}
 		}
+		
+		private var _open:Boolean;
+		/**
+		 *  Indicates whether the dialog is open.
+		 *  see https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/open
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion Royale 0.9.3
+		 */
+		public function get open():Boolean
+		{
+			return _open;
+		}
 	}
 }

-- 
To stop receiving notification emails like this one, please contact
harbs@apache.org.