diff --git a/application/application.ios.ts b/application/application.ios.ts index ac3226e23..fdd8cbf63 100644 --- a/application/application.ios.ts +++ b/application/application.ios.ts @@ -145,7 +145,6 @@ class IOSApplication implements definition.iOSApplication { public nativeApp: any; public rootController: any; - private _tnsAppdelegate: TNSAppDelegate; private _registeredObservers = {}; constructor() { @@ -153,10 +152,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); @@ -174,7 +169,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();