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 2020/07/12 15:43:46 UTC

[royale-asjs] branch develop updated: Removed nested if

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

harbs 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 cfdd3d8  Removed nested if
cfdd3d8 is described below

commit cfdd3d81ac7063ea6683e9af6fec73b49feff0b7
Author: Harbs <ha...@in-tools.com>
AuthorDate: Sun Jul 12 18:43:28 2020 +0300

    Removed nested if
---
 .../Basic/src/main/royale/org/apache/royale/html/ImageButton.as  | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/ImageButton.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/ImageButton.as
index 79e6525..95e2d61 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/ImageButton.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/ImageButton.as
@@ -116,13 +116,10 @@ package org.apache.royale.html
 		{
             if(!_imageElement)
             {
-                if(!_imageElement)
-                {
-                    _imageElement = document.createElement("img") as HTMLImageElement;
-                    element.appendChild(_imageElement);
-                }                
-
+                _imageElement = document.createElement("img") as HTMLImageElement;
+                element.appendChild(_imageElement);
             }
+
 			return _imageElement;
 		}