mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -5,12 +5,12 @@ import { textAlignmentProperty } from '../text-base';
|
||||
import { TextAlignment } from '../enums';
|
||||
import { profile } from '../../profiling';
|
||||
import { TouchGestureEventData, GestureTypes, TouchAction } from '../gestures';
|
||||
import { device } from '../../platform';
|
||||
import { Device } from '../../platform';
|
||||
import lazy from '../../utils/lazy';
|
||||
|
||||
export * from './button-common';
|
||||
|
||||
const sdkVersion = lazy(() => parseInt(device.sdkVersion));
|
||||
const sdkVersion = lazy(() => parseInt(Device.sdkVersion));
|
||||
|
||||
interface ClickListener {
|
||||
new (owner: Button): android.view.View.OnClickListener;
|
||||
@@ -57,7 +57,7 @@ export class Button extends ButtonBase {
|
||||
private _stateListAnimator: any;
|
||||
private _highlightedHandler: (args: TouchGestureEventData) => void;
|
||||
|
||||
@profile()
|
||||
@profile
|
||||
public createNativeView() {
|
||||
if (!AndroidButton) {
|
||||
AndroidButton = android.widget.Button;
|
||||
|
||||
@@ -6,7 +6,7 @@ import { textAlignmentProperty, whiteSpaceProperty, WhiteSpace } from '../text-b
|
||||
import { TextAlignment } from '../enums';
|
||||
import { profile } from '../../profiling';
|
||||
import { TouchGestureEventData, GestureTypes, TouchAction } from '../gestures';
|
||||
import { device } from '../../platform';
|
||||
import { Device } from '../../platform';
|
||||
import { layout } from '../../utils';
|
||||
|
||||
export * from './button-common';
|
||||
|
||||
Reference in New Issue
Block a user