Mercurial > eldonilo > lightstring
diff jid.js @ 106:c06ec02217ee
many changes
author | Sonny Piers <sonny@fastmail.net> |
---|---|
date | Tue, 26 Jun 2012 12:02:14 +0200 |
parents | 06e3a883d3a3 |
children | 5cb4733c5189 |
line wrap: on
line diff
old mode 100644 new mode 100755 --- a/jid.js +++ b/jid.js @@ -28,7 +28,7 @@ Lightstring.JID = function(aJID) { this.resource = null; if (aJID) - this.full = aJID; + this.full = aJID.toString(); //TODO: use a stringprep library to validate the input. }; @@ -91,6 +91,7 @@ Lightstring.JID.prototype = { }, set full(aJID) { + if (!aJID) return;