mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
converter fixed
This commit is contained in:
@ -25,7 +25,7 @@ export function textAlignConverter(value: string): string {
|
|||||||
export function textDecorationConverter(value: string): string {
|
export function textDecorationConverter(value: string): string {
|
||||||
var values = (value + "").split(" ");
|
var values = (value + "").split(" ");
|
||||||
|
|
||||||
if (values.indexOf(enums.TextDecoration.underline) !== -1 || values.indexOf(enums.TextDecoration.lineThrough) !== -1) {
|
if (values.indexOf(enums.TextDecoration.none) !== -1 || values.indexOf(enums.TextDecoration.underline) !== -1 || values.indexOf(enums.TextDecoration.lineThrough) !== -1) {
|
||||||
return value;
|
return value;
|
||||||
} else {
|
} else {
|
||||||
throw new Error("CSS text-decoration \"" + value + "\" is not supported.");
|
throw new Error("CSS text-decoration \"" + value + "\" is not supported.");
|
||||||
|
Reference in New Issue
Block a user