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 157c5d9  jewel-button: just formating
157c5d9 is described below

commit 157c5d9f2fd781bad21824ba9ed27a72b6b12d77
Author: Carlos Rovira <[email protected]>
AuthorDate: Sun Jun 14 23:07:29 2020 +0200

    jewel-button: just formating
---
 .../main/royale/org/apache/royale/jewel/Button.as  | 172 ++++++++++-----------
 .../royale/org/apache/royale/jewel/IconButton.as   |   2 +-
 2 files changed, 87 insertions(+), 87 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as
index a53ad84..504fedf 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as
@@ -48,94 +48,94 @@ package org.apache.royale.jewel
      */
     public class Button extends SimpleButton
     {
-            /**
-             *  Constructor.
-             *  
-             *  @langversion 3.0
-             *  @playerversion Flash 10.2
-             *  @playerversion AIR 2.6
-             *  @productversion Royale 0.9.4
-             */
-            public function Button()
-            {
-                  super();
-            }
+               /**
+                *  Constructor.
+                *  
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion Royale 0.9.4
+                */
+               public function Button()
+               {
+                       super();
+               }
 
-            [Bindable("textChange")]
-            /**
-             *  The text to appear on the control.
-             * 
-             *  @copy org.apache.royale.jewel.Label#text
-             *
-             *  @langversion 3.0
-             *  @playerversion Flash 10.2
-             *  @playerversion AIR 2.6
-             *  @productversion Royale 0.9.4
-             */
-            public function get text():String
-            {
-                  COMPILE::SWF
-                  {
-                  return ITextModel(model).text;
-                  }
-                  COMPILE::JS
-                  {
-                  return (element as HTMLButtonElement).textContent;
-                  }
-            }
-            /**
-             *  @private
-             */
-            public function set text(value:String):void
-            {
-                  COMPILE::SWF
-                  {
-                  ITextModel(model).text = value;
-                  }
-                  COMPILE::JS
-                  {
-                  (element as HTMLButtonElement).textContent = value;
-                  dispatchEvent(new Event('textChange'));
-                  }
-            }
+               [Bindable("textChange")]
+               /**
+                *  The text to appear on the control.
+                * 
+                *  @copy org.apache.royale.jewel.Label#text
+                *
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion Royale 0.9.4
+                */
+               public function get text():String
+               {
+                       COMPILE::SWF
+                       {
+                       return ITextModel(model).text;
+                       }
+                       COMPILE::JS
+                       {
+                       return (element as HTMLButtonElement).textContent;
+                       }
+               }
+               /**
+                *  @private
+                */
+               public function set text(value:String):void
+               {
+                       COMPILE::SWF
+                       {
+                       ITextModel(model).text = value;
+                       }
+                       COMPILE::JS
+                       {
+                       (element as HTMLButtonElement).textContent = value;
+                       dispatchEvent(new Event('textChange'));
+                       }
+               }
 
 
-            [Bindable("htmlChange")]
-            /**
-             *  The html text to appear on the control.
-             *  
-             *  @copy org.apache.royale.jewel.Label#html
-             *
-             *  @langversion 3.0
-             *  @playerversion Flash 10.2
-             *  @playerversion AIR 2.6
-             *  @productversion Royale 0.9.4
-             */
-            public function get html():String
-            {
-                  COMPILE::SWF
-                  {
-                  return ITextModel(model).html;
-                  }
-                  COMPILE::JS
-                  {
-                  return (element as HTMLButtonElement).innerHTML;
-                  }
-            }
-            /**
-             *  @private
-             */
-            public function set html(value:String):void
-            {
-                  COMPILE::SWF
-                  {
-                  ITextModel(model).html = value;
-                  }
-                  COMPILE::JS
-                  {
-                  (element as HTMLButtonElement).innerHTML = value;
-                  dispatchEvent(new Event('htmlChange'));
-                  }
-            }
+               [Bindable("htmlChange")]
+               /**
+                *  The html text to appear on the control.
+                *  
+                *  @copy org.apache.royale.jewel.Label#html
+                *
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion Royale 0.9.4
+                */
+               public function get html():String
+               {
+                       COMPILE::SWF
+                       {
+                       return ITextModel(model).html;
+                       }
+                       COMPILE::JS
+                       {
+                       return (element as HTMLButtonElement).innerHTML;
+                       }
+               }
+               /**
+                *  @private
+                */
+               public function set html(value:String):void
+               {
+                       COMPILE::SWF
+                       {
+                       ITextModel(model).html = value;
+                       }
+                       COMPILE::JS
+                       {
+                       (element as HTMLButtonElement).innerHTML = value;
+                       dispatchEvent(new Event('htmlChange'));
+                       }
+               }
        }
 }
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/IconButton.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/IconButton.as
index 86cb79e..1d72e54 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/IconButton.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/IconButton.as
@@ -83,7 +83,7 @@ package org.apache.royale.jewel
             {
                 _text = value;
                 textNode.nodeValue = value;
-                this.dispatchEvent(new Event('textChange'));
+                dispatchEvent(new Event('textChange'));
             }
                }
 

Reply via email to