mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Optimization
This commit is contained in:
@@ -296,8 +296,9 @@ export class ButtonStyler implements style.Styler {
|
||||
}
|
||||
}
|
||||
|
||||
if (button.style.color && button.style.color.ios){
|
||||
dict.set(NSForegroundColorAttributeName, button.style.color.ios);
|
||||
let buttonColor = button.style.color;
|
||||
if (buttonColor){
|
||||
dict.set(NSForegroundColorAttributeName, buttonColor.ios);
|
||||
}
|
||||
|
||||
if (dict.size > 0){
|
||||
|
||||
Reference in New Issue
Block a user