From 60de8c1285de434e63324b79bb57dea41b72622e Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Tue, 4 Aug 2015 11:56:40 +0300 Subject: [PATCH] code commented --- apps/tests/app/app.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/tests/app/app.ts b/apps/tests/app/app.ts index bae442467..bc1bc3cc5 100644 --- a/apps/tests/app/app.ts +++ b/apps/tests/app/app.ts @@ -1,6 +1,7 @@ import application = require("application"); // Specify custom UIApplicationDelegate. +/* class MyDelegate extends UIResponder implements UIApplicationDelegate { public static ObjCProtocols = [UIApplicationDelegate]; @@ -15,11 +16,14 @@ class MyDelegate extends UIResponder implements UIApplicationDelegate { } application.ios.delegate = MyDelegate; +*/ -// Observe application notifications. -application.ios.addNotificationObserver(UIApplicationDidFinishLaunchingNotification, (notification: NSNotification) => { - console.log("UIApplicationDidFinishLaunchingNotification: " + notification) -}); +if (application.ios) { + // Observe application notifications. + application.ios.addNotificationObserver(UIApplicationDidFinishLaunchingNotification, (notification: NSNotification) => { + console.log("UIApplicationDidFinishLaunchingNotification: " + notification) + }); +} application.mainModule = "app/mainPage";