Added Application module comments. Modified Console module + comments. Changed the package name of the UnitTestApp for Android.

This commit is contained in:
atanasovg
2014-05-08 14:47:12 +03:00
parent 1531c206e6
commit 298bf0977a
14 changed files with 121 additions and 93 deletions

View File

@@ -13,10 +13,6 @@ var initEvents = function () {
if (!androidApp.startActivity) {
androidApp.startActivity = activity;
//if (UI.Application.current.onLaunch) {
// UI.Application.current.onLaunch();
//}
if (androidApp.onActivityCreated) {
androidApp.onActivityCreated(activity, bundle);
}

View File

@@ -90,7 +90,6 @@ export declare class AndroidApplication {
* This method is called by the JavaScript Bridge when navigation to a new activity is triggered.
* The return value of this method should be com.tns.NativeScriptActivity.extends implementation.
*/
// TODO: Why is the android.content.Intent module rather than a class?
public getActivity: (intent: android.content.Intent) => any;
/**

View File

@@ -1,4 +1,4 @@
import console_module = require("Console/console_common");
import consoleModule = require("Console/console");
export enum TargetOS {
iOS,
@@ -9,7 +9,8 @@ export class Application {
public os: TargetOS;
constructor() {
console = new console_module.TKConsole();
// TODO: This is put in the global context, is this the preferred approach
console = new consoleModule.Console();
}
public onLaunch: () => any;