This is an automated email from the ASF dual-hosted git repository.
gregdove 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 3d59e6a57a Fix for a minification issue in BorderRadius (CheckBox)
3d59e6a57a is described below
commit 3d59e6a57a91d9dc4803b26d4de8b73f8bef19d5
Author: greg-dove <[email protected]>
AuthorDate: Thu Mar 19 16:25:42 2026 +1300
Fix for a minification issue in BorderRadius (CheckBox)
---
.../org/apache/royale/style/stylebeads/border/BorderRadius.as | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/border/BorderRadius.as
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/border/BorderRadius.as
index 980d124cac..c07dcd86cb 100644
---
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/border/BorderRadius.as
+++
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/border/BorderRadius.as
@@ -32,8 +32,11 @@ package org.apache.royale.style.stylebeads.border
{
super();
styles = [];
- if(value)
- radius = value;
+ //because of @royalesuppressexport, the following did
not work in release/minified build from within this constructor when using the
radius setter directly:
+ //if (value) radius = value;
+ //however a usage of the getter here will make the
setter usage survive minification:
+ if (value != radius) radius = value;
+ //another option that worked was to isolate the
setter's internals into a separate private method and call that directly (as
would the setter itself).
}
private var _radius:*;
@@ -183,7 +186,7 @@ package org.apache.royale.style.stylebeads.border
}
}
}
-import org.apache.royale.style.stylebeads.border.BorderRadius;
+
import org.apache.royale.style.util.StyleTheme;
import org.apache.royale.style.util.ThemeManager;
import org.apache.royale.style.stylebeads.LeafStyleBase;