Hi there...
B4J Code
BANano Code
It seems to loose the styleName in the startWith parts in the else if statements
B4J Code
B4X:
Sub GetCssStyle(styleName As String) As String
If styleName.StartsWith("@") Then
else If styleName.StartsWith("#") Then
else If styleName.StartsWith(".") Then
Else
styleName = "." & styleName
End If
Return CSSRule.Get(styleName)
End Sub
BANano Code
B4X:
this.getcssstyle = function (_stylename) {
If (self == Null) self = this;
If (_stylename.startsWith("@")) {} else if (.startsWith("#")) {} else if (.startsWith(".")) {} Else {
_stylename = "." + _stylename;
}
Return self._cssrule[_stylename];
};
It seems to loose the styleName in the startWith parts in the else if statements