From fe84ff00972e4582cc329367058a7ea9d4ca3856 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Mon, 3 Aug 2015 17:13:56 +0300 Subject: [PATCH] Some typos fixed --- application/application.ios.ts | 4 ++-- apps/orientation-demo/main-page.port.xml | 2 +- apps/orientation-demo/main-page.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/application.ios.ts b/application/application.ios.ts index e45eb2a19..368c6561d 100644 --- a/application/application.ios.ts +++ b/application/application.ios.ts @@ -68,7 +68,7 @@ class IOSApplication implements definition.iOSApplication { this.addNotificationObserver(UIApplicationDidEnterBackgroundNotification, this.didEnterBackground); this.addNotificationObserver(UIApplicationWillTerminateNotification, this.willTerminate); this.addNotificationObserver(UIApplicationDidReceiveMemoryWarningNotification, this.didReceiveMemoryWarning); - this.addNotificationObserver(UIDeviceOrientationDidChangeNotification, this.oreintationDidChange); + this.addNotificationObserver(UIDeviceOrientationDidChangeNotification, this.orientationDidChange); } get nativeApp(): UIApplication { @@ -162,7 +162,7 @@ class IOSApplication implements definition.iOSApplication { exports.notify({ eventName: definition.lowMemoryEvent, object: this, android: undefined, ios: UIApplication.sharedApplication() }); } - private oreintationDidChange(notification: NSNotification) { + private orientationDidChange(notification: NSNotification) { var orientation = UIDevice.currentDevice().orientation; if (this._currentOrientation !== orientation) { diff --git a/apps/orientation-demo/main-page.port.xml b/apps/orientation-demo/main-page.port.xml index 5ac9e933c..6f15011e1 100644 --- a/apps/orientation-demo/main-page.port.xml +++ b/apps/orientation-demo/main-page.port.xml @@ -1,5 +1,5 @@ - + diff --git a/apps/orientation-demo/main-page.ts b/apps/orientation-demo/main-page.ts index bd6b6529e..480372ca3 100644 --- a/apps/orientation-demo/main-page.ts +++ b/apps/orientation-demo/main-page.ts @@ -5,14 +5,14 @@ import pageModule = require("ui/page"); var vm = new observable.Observable(); function orientationChanged(data) { console.log("Orientation changed: " + data.newValue); - vm.set("oreintation", data.newValue); + vm.set("orientation", data.newValue); } export function onPageLoaded(args: observable.EventData) { var page = args.object; application.on(application.orientationChangedEvent, orientationChanged, page); page.bindingContext = vm; - vm.set("oreintation", "not changed"); + vm.set("orientation", "not changed"); } export function onPageUnloaded(args: observable.EventData) {