| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | import "../globals"; | |
| 3 | 3 | import { Observable, EventData } from "../data/observable"; | |
| 4 | 4 | import { View } from "../ui/core/view"; | |
| 5 | - import { device } from "../platform"; | ||
| 6 | 5 | import { | |
| 7 | 6 | trace as profilingTrace, | |
| 8 | 7 | time, | |
@@ -39,7 +38,6 @@ import { | |||
| 39 | 38 | DiscardedErrorEventData, | |
| 40 | 39 | iOSApplication, | |
| 41 | 40 | LoadAppCSSEventData, | |
| 42 | - OrientationChangedEventData, | ||
| 43 | 41 | UnhandledErrorEventData | |
| 44 | 42 | } from "./application"; | |
| 45 | 43 | ||
@@ -123,12 +121,6 @@ export function addCss(cssText: string): void { | |||
| 123 | 121 | events.notify(<CssChangedEventData>{ eventName: "cssChanged", object: app, cssText: cssText }); | |
| 124 | 122 | } | |
| 125 | 123 | ||
| 126 | - on(orientationChangedEvent, (args: OrientationChangedEventData) => { | ||
| 127 | - if (app.orientation !== args.newValue) { | ||
| 128 | - app.orientation = args.newValue; | ||
| 129 | - } | ||
| 130 | - }); | ||
| 131 | - | ||
| 132 | 124 | global.__onUncaughtError = function (error: NativeScriptError) { | |
| 133 | 125 | events.notify(<UnhandledErrorEventData>{ eventName: uncaughtErrorEvent, object: app, android: error, ios: error, error: error }); | |
| 134 | 126 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -410,7 +410,7 @@ export class AndroidApplication extends Observable { | |||
| 410 | 410 | startActivity: any /* androidx.appcompat.app.AppCompatActivity */; | |
| 411 | 411 | ||
| 412 | 412 | /** | |
| 413 | - * Gets or sets the orientation of the application. | ||
| 413 | + * Gets the orientation of the application. | ||
| 414 | 414 | * Available values: "portrait", "landscape", "unknown". | |
| 415 | 415 | */ | |
| 416 | 416 | orientation: "portrait" | "landscape" | "unknown"; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -101,10 +101,6 @@ class IOSApplication implements IOSApplicationDefinition { | |||
| 101 | 101 | return this._orientation; | |
| 102 | 102 | } | |
| 103 | 103 | ||
| 104 | - set orientation(value: "portrait" | "landscape" | "unknown") { | ||
| 105 | - this._orientation = value; | ||
| 106 | - } | ||
| 107 | - | ||
| 108 | 104 | get rootController(): UIViewController { | |
| 109 | 105 | return this._window.rootViewController; | |
| 110 | 106 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments