Skip to content

Commit

Permalink
[#292] Some minor fixes in xmpp.js
Browse files Browse the repository at this point in the history
Doc comments, as well as an outdated jid:null definition
that should be currentJid:null.
  • Loading branch information
cburschka committed Dec 23, 2015
1 parent 86c3d63 commit 8f665d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/core/xmpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var xmpp = {
target: null,
current: null,
},
jid: null,
currentJid: null,
user: null,
resource: null,
status: 'offline',
Expand Down Expand Up @@ -124,7 +124,7 @@ var xmpp = {
/**
* Generate a JID from an object of values.
*
* @param {object} data: The values for the JID.
* @param {object} data The values for the JID.
*/
jid: function(data) {
// A JID overrides everything else.
Expand Down Expand Up @@ -1051,6 +1051,9 @@ var xmpp = {
/**
* Determine the status (online, waiting, offline) of the connection from
* the code.
*
* @param {int} status A Strophe status constant.
* @return {string} One of "offline", "waiting", or "prejoin".
*/
readConnectionStatus: function(status) {
switch (status) {
Expand Down

0 comments on commit 8f665d6

Please sign in to comment.