From 7b25fe9c621c9509f64f68f85fc10e823da14a60 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Thu, 30 Jul 2015 16:02:36 +0300 Subject: [PATCH] wrong app delegate creation removed --- application/application.ios.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/application/application.ios.ts b/application/application.ios.ts index 00d8ca8e9..5e62bca61 100644 --- a/application/application.ios.ts +++ b/application/application.ios.ts @@ -144,7 +144,6 @@ class IOSApplication implements definition.iOSApplication { public nativeApp: any; public rootController: any; - private _tnsAppdelegate: TNSAppDelegate; private _registeredObservers = {}; constructor() { @@ -152,10 +151,6 @@ class IOSApplication implements definition.iOSApplication { this.nativeApp = UIApplication.sharedApplication(); } - public init() { - this._tnsAppdelegate = new TNSAppDelegate(); - } - public addNotificationObserver(notificationName: string, onReceiveCallback: (notification: NSNotification) => void) { var observer = NotificationReceiver.new().initWithCallback(onReceiveCallback); NSNotificationCenter.defaultCenter().addObserverSelectorNameObject(observer, "onReceive", notificationName, null); @@ -173,7 +168,6 @@ class IOSApplication implements definition.iOSApplication { // TODO: If we have nested require(application) calls we may enter unfinished module state, which will create two delegates, resulting in an exception var app = new IOSApplication(); exports.ios = app; -app.init(); exports.start = function () { appModule.loadCss();