changed mainModule to start(entry)

This commit is contained in:
Vladimir Enchev
2016-01-19 17:02:06 +02:00
parent 97738bd45e
commit d05426c22d
43 changed files with 49 additions and 89 deletions

View File

@@ -224,8 +224,11 @@ global.__onUncaughtError = function (error: Error) {
}
var started: boolean = false;
exports.start = function () {
exports.start = function (entry?: frame.NavigationEntry) {
if (!started) {
if (entry) {
exports.mainEntry = entry;
}
started = true;
exports.loadCss();
UIApplicationMain(0, null, null, exports.ios && exports.ios.delegate ? NSStringFromClass(exports.ios.delegate) : NSStringFromClass(Responder));