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

yishayw pushed a commit to branch color_picker
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/color_picker by this push:
     new accf41e  Some typos.
accf41e is described below

commit accf41ee42e7207ebb89031444bcf41747e21f21
Author: DESKTOP-RH4S838\Yishay <[email protected]>
AuthorDate: Sun Mar 17 16:39:04 2019 +0200

    Some typos.
---
 .../apache/royale/html/supportClasses/ColorSpectrum.as | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/ColorSpectrum.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/ColorSpectrum.as
index e952b6e..3296404 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/ColorSpectrum.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/ColorSpectrum.as
@@ -55,7 +55,7 @@ package org.apache.royale.html
                public function ColorSpectrum()
                {
                        super();
-                       model.addEventListener("textChange", textChangeHandler);
+                       model.addEventListener("colorChange", 
colorChangeHandler);
                }
 
         /**
@@ -76,7 +76,21 @@ package org.apache.royale.html
          */
                public function set color(value:uint):void
                {
-                       IColorModel(model).text = value;
+                       IColorModel(model).color = value;
                }
+
+               /**
+                *  dispatch change event in response to a colorChange event
+                *
+                *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.9.6
+                */
+               public function textChangeHandler(event:Event):void
+               {
+                       dispatchEvent(new Event(Event.CHANGE));
+               }
+
        }
 }

Reply via email to