mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): type collisions with namespace (#8809)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as enums from '@nativescript/core/ui/enums';
|
||||
import { Enums } from '@nativescript/core';
|
||||
import * as pageModule from '@nativescript/core/ui/page';
|
||||
import * as model from './myview';
|
||||
|
||||
@@ -9,9 +9,9 @@ export function onLoaded(args: { eventName: string; object: any }) {
|
||||
|
||||
export function onOrientation(args: { eventName: string; object: any }) {
|
||||
var layout = args.object.parent;
|
||||
if (layout.orientation === enums.Orientation.vertical) {
|
||||
layout.orientation = enums.Orientation.horizontal;
|
||||
if (layout.orientation === Enums.Orientation.vertical) {
|
||||
layout.orientation = Enums.Orientation.horizontal;
|
||||
} else {
|
||||
layout.orientation = enums.Orientation.vertical;
|
||||
layout.orientation = Enums.Orientation.vertical;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user