chore: fix eslint issues (#9017)

This commit is contained in:
Martin Guillon
2020-11-11 17:46:36 +01:00
committed by GitHub
parent 05faa867d0
commit c1f231d88e
171 changed files with 1607 additions and 1550 deletions

View File

@@ -10,14 +10,14 @@ class SwitchChangeHandlerImpl extends NSObject {
private _owner: WeakRef<Switch>;
public static initWithOwner(owner: WeakRef<Switch>): SwitchChangeHandlerImpl {
let handler = <SwitchChangeHandlerImpl>SwitchChangeHandlerImpl.new();
const handler = <SwitchChangeHandlerImpl>SwitchChangeHandlerImpl.new();
handler._owner = owner;
return handler;
}
public valueChanged(sender: UISwitch) {
let owner = this._owner.get();
const owner = this._owner.get();
if (owner) {
checkedProperty.nativeValueChange(owner, sender.on);
}
@@ -62,7 +62,7 @@ export class Switch extends SwitchBase {
public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
// It can't be anything different from 51x31
let nativeSize = this.nativeViewProtected.sizeThatFits(zeroSize);
const nativeSize = this.nativeViewProtected.sizeThatFits(zeroSize);
this.width = nativeSize.width;
this.height = nativeSize.height;