Fixed loading html and js into view

This commit is contained in:
Jeena Paradies 2012-11-16 02:40:50 +01:00
parent ced63f7ce9
commit 9e83bfec47
6 changed files with 90 additions and 47 deletions

View file

@ -27,13 +27,13 @@ function(HostApp, Paths, Hmac) {
"write_followings": "Follow ne entities"
}
};
this.register_data = null;
this.profile = null;
this.state = null;
}
Oauth.prototype.authenticate = function() {
var entity = HostApp.stringForKey("entity");
if (entity && (entity.startsWith("http://") || entity.startsWith("https://"))) {

View file

@ -1,6 +1,5 @@
var tentia_instance;
var tentia_cache = {};
var OS_TYPE = "mac";
requirejs.config({
baseUrl: 'scripts'
@ -9,7 +8,6 @@ requirejs.config({
function start(view) {
if (view == "oauth") {
require(["controller/Oauth"], function(Oauth) {
tentia_instance = new Oauth();
@ -75,13 +73,13 @@ function debug(string) {
function go() { // wait untill everything is loaded
setTimeout(function() {
if (HostAppGo != undefined) {
if (typeof HostAppGo != typeof __not_defined__) {
HostAppGo();
} else {
go();
}
@ -89,5 +87,4 @@ function go() { // wait untill everything is loaded
}, 500);
}
go();
go();