mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: Enums > CoreTypes
Cleanup type symbol usage by consolidating to manage in one spot. This makes them easier to use as well by providing a single rollup of all the common type symbol's used throughout core.
This commit is contained in:
@@ -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 === CoreTypes.Orientation.vertical) {
|
||||
layout.orientation = CoreTypes.Orientation.horizontal;
|
||||
} else {
|
||||
layout.orientation = Enums.Orientation.vertical;
|
||||
layout.orientation = CoreTypes.Orientation.vertical;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user