Moved live-sync code in application-common

This commit is contained in:
hshristov
2015-11-09 14:34:15 +02:00
parent ed489585ec
commit 9b049f563e
3 changed files with 4 additions and 8 deletions

View File

@ -50,4 +50,8 @@ export function loadCss() {
} }
} }
} }
}
global.__onLiveSync = function () {
frame.reloadPage();
} }

View File

@ -156,10 +156,6 @@ app.init({
onCreate: function () { onCreate: function () {
exports.android.init(this); exports.android.init(this);
},
onLiveSync: function () {
frame.reloadPage();
} }
}); });

View File

@ -217,10 +217,6 @@ global.__onUncaughtError = function (error: Error) {
definition.notify({ eventName: definition.uncaughtErrorEvent, object: <any>definition.ios, ios: error }); definition.notify({ eventName: definition.uncaughtErrorEvent, object: <any>definition.ios, ios: error });
} }
global.__onLiveSync = function () {
frame.reloadPage();
}
var started: boolean = false; var started: boolean = false;
exports.start = function () { exports.start = function () {
if (!started) { if (!started) {