mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Added Application module comments. Modified Console module + comments. Changed the package name of the UnitTestApp for Android.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
1
Application/application.d.ts
vendored
1
Application/application.d.ts
vendored
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user