You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2020/09/20 13:39:32 UTC
[royale-asjs] branch develop updated: Update TextArea.as
UnCommented selectable getter and setter
This is an automated email from the ASF dual-hosted git repository.
pushminakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 3fec92c Update TextArea.as UnCommented selectable getter and setter
3fec92c is described below
commit 3fec92c885f6b4b1e3e7adbb3e9d3703f1070a00
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Sun Sep 20 18:39:26 2020 +0500
Update TextArea.as UnCommented selectable getter and setter
---
.../src/main/royale/mx/controls/TextArea.as | 34 +++++++++++-----------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextArea.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextArea.as
index 895e8d6..c4c3636 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextArea.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextArea.as
@@ -1471,13 +1471,13 @@ public class TextArea extends ScrollControlBase
* @private
* Storage for selectable property.
*/
-// private var _selectable:Boolean = true;
+ private var _selectable:Boolean = true;
/**
* @private
* Change flag for selectable property.
*/
-// private var selectableChanged:Boolean = false;
+ private var selectableChanged:Boolean = false;
// [Inspectable(category="General", defaultValue="true")]
@@ -1492,24 +1492,24 @@ public class TextArea extends ScrollControlBase
* @playerversion AIR 1.1
* @productversion Flex 3
*/
-// public function get selectable():Boolean
-// {
-// return _selectable;
-// }
-//
+ public function get selectable():Boolean
+ {
+ return _selectable;
+ }
+
// /**
// * @private
// */
-// public function set selectable(value:Boolean):void
-// {
-// if (value == selectable)
-// return;
-//
-// _selectable = value;
-// selectableChanged = true;
-//
-// invalidateProperties();
-// }
+ public function set selectable(value:Boolean):void
+ {
+ if (value == selectable)
+ return;
+
+ _selectable = value;
+ selectableChanged = true;
+
+ invalidateProperties();
+ }
//----------------------------------
// selectionBeginIndex