Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.stefan-strigler.de/jsjac/trunk@459 5ff7c7a3-1d2c-0410-94ce-ebea5ecf0e18
  • Loading branch information
zeank committed Feb 12, 2008
1 parent 1907f43 commit 55f3461
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions examples/simpleclient.html
Expand Up @@ -171,12 +171,10 @@
}

function quit() {
var p = new JSJaCPresence();
p.setStatus("bye");
p.setType("unavailable");
con.send(p);

con.disconnect();
var p = new JSJaCPresence();
p.setType("unavailable");
con.send(p);
con.disconnect();

document.getElementById('login_pane').style.display = '';
document.getElementById('sendmsg_pane').style.display = 'none';
Expand All @@ -188,10 +186,10 @@
oDbg.start();
} else {
// if you're using firebug or safari, use this for debugging
oDbg = new JSJaCConsoleLogger(2);
//oDbg = new JSJaCConsoleLogger(2);
// comment in above and remove comments below if you don't need debugging
// oDbg = function() {};
// oDbg.log = function() {};
oDbg = function() {};
oDbg.log = function() {};
}


Expand Down Expand Up @@ -227,14 +225,15 @@
};

onunload = function() {
if (typeof(con) != 'undefined') {
if (typeof con != 'undefined' && con && con.connected()) {
// save backend type
if (con._hold) // must be binding
(new JSJaCCookie('btype','binding')).write();
else
(new JSJaCCookie('btype','polling')).write();
if (con.suspend)
if (con.suspend) {
con.suspend();
}
}
};

Expand Down

0 comments on commit 55f3461

Please sign in to comment.