Merge pull request #526 from NativeScript/app-delegate

wrong app delegate creation removed
This commit is contained in:
Vladimir Enchev
2015-07-31 13:00:47 +03:00

View File

@ -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();