Merge pull request #3326 from NativeScript/apps-ready

apps app can now compile
This commit is contained in:
Rossen Hristov
2016-12-20 11:35:57 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@ -79,5 +79,5 @@ application.on(application.uncaughtErrorEvent, function (args: application.Appli
} }
}); });
application.cssFile = "ui-tests-app/app.css"; application.setCssFileName("ui-tests-app/app.css");
application.start({ moduleName: "ui-tests-app/mainPage" }); application.start({ moduleName: "ui-tests-app/mainPage" });

View File

@ -7,7 +7,7 @@ let iconModes = ["automatic", "alwaysOriginal", "alwaysTemplate", undefined];
export function onChangeRenderingMode(args: EventData){ export function onChangeRenderingMode(args: EventData){
let button = (<Button>args.object); let button = (<Button>args.object);
let tabView = button.page.getViewById<TabView>("tab-view"); let tabView = button.page.getViewById<TabView>("tab-view");
tabView.iosIconRenderingMode = iconModes[(iconModes.indexOf(tabView.iosIconRenderingMode) + 1) % iconModes.length]; tabView.iosIconRenderingMode = <"automatic" | "alwaysOriginal" | "alwaysTemplate">iconModes[(iconModes.indexOf(tabView.iosIconRenderingMode) + 1) % iconModes.length];
for(let i = 0, length = tabView.items.length; i < length; i++){ for(let i = 0, length = tabView.items.length; i < length; i++){
(<Button>tabView.items[i].view).text = "" + tabView.iosIconRenderingMode; (<Button>tabView.items[i].view).text = "" + tabView.iosIconRenderingMode;
} }

View File

@ -255,7 +255,7 @@ declare module "application" {
/** /**
* This event is raised when an uncaught error occurs while the application is running. * This event is raised when an uncaught error occurs while the application is running.
*/ */
export function on(event: "uncaughtError", callback: (args: ApplicationEventData) => void, thisArg?: any); export function on(event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any);
/** /**
* This event is raised the orientation of the current device has changed. * This event is raised the orientation of the current device has changed.