More code improvements

This commit is contained in:
Vladimir Enchev
2015-08-03 16:36:25 +03:00
parent c5b2b38275
commit 00f68a2820

View File

@@ -183,9 +183,9 @@ class IOSApplication implements definition.iOSApplication {
exports.notify(<definition.OrientationChangedEventData>{ exports.notify(<definition.OrientationChangedEventData>{
eventName: definition.orientationChangedEvent, eventName: definition.orientationChangedEvent,
ios: exports.ios, ios: this,
newValue: newValue, newValue: newValue,
object: exports.ios, object: this
}); });
} }
} }
@@ -195,7 +195,9 @@ class IOSApplication implements definition.iOSApplication {
exports.ios = new IOSApplication(); exports.ios = new IOSApplication();
exports.start = function () { exports.start = function () {
appModule.loadCss(); appModule.loadCss();
try { try {
// The "UIApplicationMain" enters a modal loop and the call will not return while the application is running. // The "UIApplicationMain" enters a modal loop and the call will not return while the application is running.
// This try-catch block here will catch JavaScript errors but no Objective C ones. // This try-catch block here will catch JavaScript errors but no Objective C ones.