From a12ad21bfdeaeb249a38596e56a36cd72ee13d37 Mon Sep 17 00:00:00 2001 From: Tsvetan Raikov Date: Wed, 7 Dec 2016 13:52:48 +0200 Subject: [PATCH] Fixed: XML/HTML livesync not working on iOS --- tns-core-modules/application/application.ios.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tns-core-modules/application/application.ios.ts b/tns-core-modules/application/application.ios.ts index bc6aae751..096b933a9 100644 --- a/tns-core-modules/application/application.ios.ts +++ b/tns-core-modules/application/application.ios.ts @@ -87,7 +87,7 @@ class IOSApplication implements definition.iOSApplication { get window(): Window { return this._window; - } + } get delegate(): typeof UIApplicationDelegate { return this._delegate; @@ -225,7 +225,7 @@ global.__onUncaughtError = function (error: definition.NativeScriptError) { if (types.isFunction(typedExports.onUncaughtError)) { typedExports.onUncaughtError(error); } - + typedExports.notify({ eventName: typedExports.uncaughtErrorEvent, object: typedExports.ios, ios: error }); } @@ -276,11 +276,11 @@ typedExports.start = function (entry?: NavigationEntry) { if (entry) { exports.mainEntry = entry; } - + started = true; loadCss(); if(!iosApp.nativeApp) { - // Normal NativeScript app will need UIApplicationMain. + // Normal NativeScript app will need UIApplicationMain. UIApplicationMain(0, null, null, typedExports.ios && typedExports.ios.delegate ? NSStringFromClass(typedExports.ios.delegate) : NSStringFromClass(Responder)); } else { let rootView = createRootView();