chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-06 14:25:11 -07:00
parent 94cf5c4706
commit 6336eac4b5
477 changed files with 59087 additions and 74961 deletions

View File

@@ -1,22 +1,22 @@
import { Button as ButtonDefinition } from ".";
import { TextBase } from "../text-base";
import { CSSType } from "../core/view";
import { booleanConverter } from "../core/view-base";
import { Button as ButtonDefinition } from '.';
import { TextBase } from '../text-base';
import { CSSType } from '../core/view';
import { booleanConverter } from '../core/view-base';
@CSSType("Button")
@CSSType('Button')
export abstract class ButtonBase extends TextBase implements ButtonDefinition {
public static tapEvent = "tap";
public static tapEvent = 'tap';
get textWrap(): boolean {
return this.style.whiteSpace === "normal";
}
set textWrap(value: boolean) {
if (typeof value === "string") {
value = booleanConverter(value);
}
get textWrap(): boolean {
return this.style.whiteSpace === 'normal';
}
set textWrap(value: boolean) {
if (typeof value === 'string') {
value = booleanConverter(value);
}
this.style.whiteSpace = value ? "normal" : "nowrap";
}
this.style.whiteSpace = value ? 'normal' : 'nowrap';
}
}
ButtonBase.prototype.recycleNativeView = "auto";
ButtonBase.prototype.recycleNativeView = 'auto';