Sent the callback directly to sendIQ

This commit is contained in:
JC Brand 2012-06-24 21:03:03 +02:00
parent ee7ef4ad6e
commit de73fb218d

View File

@ -166,10 +166,7 @@ var xmppchat = (function (jarnxmpp, $, console) {
.c('max')
.t('30');
xmppchat.connection.sendIQ(iq,
function (result) {
// TODO: Do stuff here...
callback();
},
callback,
function (result) {
console.log(iq.nodeTree);
console.log($(result).find('error'));