comparison util.js @ 34:dcf1f09f8cee

Add message to publish module and various fixes.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 05 Nov 2010 15:31:13 +0100
parents 60c80751cfa5
children
comparison
equal deleted inserted replaced
33:62cbb1c49bc5 34:dcf1f09f8cee
48 48
49 util.toBareJID = function(jid) { 49 util.toBareJID = function(jid) {
50 var j = new JID(jid); 50 var j = new JID(jid);
51 return j.bare; 51 return j.bare;
52 }; 52 };
53
54 util.toResource = function(jid) {
55 var j = new JID(jid);
56 return j.resource;
57 };