Permalink
Browse files

XMPP object: minor cleanup.

  • Loading branch information...
1 parent fa89574 commit fee763b53c16467b1809adfc50ca483f75142a18 @bard bard committed Mar 13, 2009
Showing with 2 additions and 9 deletions.
  1. +2 −9 modules/xmpp_impl.jsm
View
@@ -287,15 +287,8 @@ function up(account, onSessionActive) {
account = a;
}
- onSessionActive = onSessionActive || function() {};
-
- if(account.jid)
- _up(account, onSessionActive);
- else
- _up(null, function(jid) {
- account.jid = jid; // TODO: why this?
- onSessionActive(jid);
- });
+ _up(account.jid ? account : null,
+ onSessionActive ? onSessionActive : function() {});
}
function down(account) {

0 comments on commit fee763b

Please sign in to comment.