You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/04/21 10:56:24 UTC

[royale-asjs] branch develop updated: jewel-formvalidator: with latest change we need to override strand to avoid trigger be assigned and dispatch CHANGE event at form level

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

carlosrovira 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 bd22847  jewel-formvalidator: with latest change we need to override strand to avoid trigger be assigned and dispatch CHANGE event at form level
bd22847 is described below

commit bd22847a0fb05360f0f93e83208c1385109a856a
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Apr 21 12:56:16 2019 +0200

    jewel-formvalidator: with latest change we need to override strand to avoid trigger be assigned and dispatch CHANGE event at form level
---
 .../apache/royale/jewel/beads/validators/FormValidator.as | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidator.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidator.as
index c8b3f15..27ce15b 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidator.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidator.as
@@ -22,6 +22,7 @@ package org.apache.royale.jewel.beads.validators
 	import org.apache.royale.events.Event;
 	import org.apache.royale.jewel.Group;
 	import org.apache.royale.jewel.Snackbar;
+	import org.apache.royale.core.IStrand;
 
 	/**
 	 *  The FormValidator class is a specialty bead that can be used with
@@ -48,6 +49,20 @@ package org.apache.royale.jewel.beads.validators
 			super.requiredFieldError = null;
 		}
 
+		/**
+		 *  @copy org.apache.royale.core.IBead#strand
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion Royale 0.9.4
+		 *  @royaleignorecoercion org.apache.royale.events.IEventDispatcher
+		 */
+		override public function set strand(value:IStrand):void
+		{
+			hostComponent = value as UIBase;
+		}
+
 		private var _isError:Boolean;
 
 		/**