Skip to content

Commit

Permalink
hotfixed ChatUser.getJid() method. version v1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pstadler committed Oct 14, 2011
1 parent b290deb commit e6837f7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions candy.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var Candy = (function(self, $) {
*/
self.about = {
name: 'Candy',
version: '1.0.4'
version: '1.0.5'
};

/** Function: init
Expand Down Expand Up @@ -1570,7 +1570,10 @@ Candy.Core.ChatUser = function(jid, nick, affiliation, role) {
* (String) - jid
*/
this.getJid = function() {
return Candy.Util.unescapeJid(this.data.jid);
if(this.data.jid) {
return Candy.Util.unescapeJid(this.data.jid);
}
return;
};

/** Function: getEscapedJid
Expand Down
2 changes: 1 addition & 1 deletion candy.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/candy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var Candy = (function(self, $) {
*/
self.about = {
name: 'Candy',
version: '1.0.4'
version: '1.0.5'
};

/** Function: init
Expand Down
5 changes: 4 additions & 1 deletion src/core/chatUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ Candy.Core.ChatUser = function(jid, nick, affiliation, role) {
* (String) - jid
*/
this.getJid = function() {
return Candy.Util.unescapeJid(this.data.jid);
if(this.data.jid) {
return Candy.Util.unescapeJid(this.data.jid);
}
return;
};

/** Function: getEscapedJid
Expand Down

0 comments on commit e6837f7

Please sign in to comment.