mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
More code improvements
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user