Skip to content

Commit fe84ff0

Browse files
author
vakrilov
committed
Some typos fixed
1 parent 117be96 commit fe84ff0

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

application/application.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class IOSApplication implements definition.iOSApplication {
6868
this.addNotificationObserver(UIApplicationDidEnterBackgroundNotification, this.didEnterBackground);
6969
this.addNotificationObserver(UIApplicationWillTerminateNotification, this.willTerminate);
7070
this.addNotificationObserver(UIApplicationDidReceiveMemoryWarningNotification, this.didReceiveMemoryWarning);
71-
this.addNotificationObserver(UIDeviceOrientationDidChangeNotification, this.oreintationDidChange);
71+
this.addNotificationObserver(UIDeviceOrientationDidChangeNotification, this.orientationDidChange);
7272
}
7373

7474
get nativeApp(): UIApplication {
@@ -162,7 +162,7 @@ class IOSApplication implements definition.iOSApplication {
162162
exports.notify({ eventName: definition.lowMemoryEvent, object: this, android: undefined, ios: UIApplication.sharedApplication() });
163163
}
164164

165-
private oreintationDidChange(notification: NSNotification) {
165+
private orientationDidChange(notification: NSNotification) {
166166
var orientation = UIDevice.currentDevice().orientation;
167167

168168
if (this._currentOrientation !== orientation) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="onPageLoaded" unloaded="onPageUnloaded" navigatedTo="pageNavigatedTo">
22
<GridLayout>
3-
<TextView text="{{ oreintation }}" />
3+
<TextView text="{{ orientation }}" />
44
</GridLayout>
55
</Page>

apps/orientation-demo/main-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import pageModule = require("ui/page");
55
var vm = new observable.Observable();
66
function orientationChanged(data) {
77
console.log("Orientation changed: " + data.newValue);
8-
vm.set("oreintation", data.newValue);
8+
vm.set("orientation", data.newValue);
99
}
1010
export function onPageLoaded(args: observable.EventData) {
1111
var page = <pageModule.Page>args.object;
1212
application.on(application.orientationChangedEvent, orientationChanged, page);
1313

1414
page.bindingContext = vm;
15-
vm.set("oreintation", "not changed");
15+
vm.set("orientation", "not changed");
1616
}
1717

1818
export function onPageUnloaded(args: observable.EventData) {

0 commit comments

Comments
 (0)