Skip to content

Commit cbfcf0c

Browse files
committed
chore: cleanup
1 parent 4b55944 commit cbfcf0c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/gesturehandler/gesturehandler.common.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
/* eslint-disable no-redeclare */
2-
// import { launchEvent } from '@nativescript/core/application';
3-
// console.log(launchEvent);
4-
// console.log('gestures common', global.NativeScriptHasInitGlobal);
5-
62
import Observable from '@nativescript-community/observable';
73
import { EventData, GridLayout } from '@nativescript/core';
84
import { CssProperty, Property, Style, View, booleanConverter } from '@nativescript/core/ui';
@@ -66,7 +62,7 @@ export interface TypeMap {
6662

6763
function createGetter(key: string, options: NativePropertyOptions) {
6864
// console.log('createGetter', key, options);
69-
const nativeGetterName = ((global.isAndroid ? options.android : options.ios) || options).nativeGetterName || 'get' + key.charAt(0).toUpperCase() + key.slice(1);
65+
const nativeGetterName = ((__ANDROID__ ? options.android : options.ios) || options).nativeGetterName || 'get' + key.charAt(0).toUpperCase() + key.slice(1);
7066
const converter = options.converter;
7167
return function () {
7268
let result;
@@ -82,7 +78,7 @@ function createGetter(key: string, options: NativePropertyOptions) {
8278
};
8379
}
8480
function createSetter(key, options: NativePropertyOptions) {
85-
const nativeSetterName = ((global.isAndroid ? options.android : options.ios) || options).nativeSetterName || 'set' + key.charAt(0).toUpperCase() + key.slice(1);
81+
const nativeSetterName = ((__ANDROID__ ? options.android : options.ios) || options).nativeSetterName || 'set' + key.charAt(0).toUpperCase() + key.slice(1);
8682
return function (newVal) {
8783
this.options[key] = newVal;
8884
if (this.native && this.native[nativeSetterName]) {

0 commit comments

Comments
 (0)