mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 23:42:50 +08:00
Some typos fixed
This commit is contained in:
@ -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 = <pageModule.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) {
|
||||
|
Reference in New Issue
Block a user