Removes unused, duplicate code method.

This commit is contained in:
Damian Minkov 2014-10-24 13:26:20 +03:00
parent 1602af0229
commit b35e8aaf93
1 changed files with 0 additions and 22 deletions

22
app.js
View File

@ -1477,28 +1477,6 @@ function setView(viewName) {
// }
}
function hangUp() {
if (connection && connection.connected) {
// ensure signout
$.ajax({
type: 'POST',
url: config.bosh,
async: false,
cache: false,
contentType: 'application/xml',
data: "<body rid='" + (connection.rid || connection._proto.rid) + "' xmlns='http://jabber.org/protocol/httpbind' sid='" + (connection.sid || connection._proto.sid) + "' type='terminate'><presence xmlns='jabber:client' type='unavailable'/></body>",
success: function (data) {
console.log('signed out');
console.log(data);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
console.log('signout error', textStatus + ' (' + errorThrown + ')');
}
});
}
disposeConference(true);
}
$(document).bind('fatalError.jingle',
function (event, session, error)
{