Mercurial > eldonilo > lightstring
comparison 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 |
comparison
equal
deleted
inserted
replaced
105:fb50311997b5 | 106:c06ec02217ee |
---|---|
26 this.node = null; | 26 this.node = null; |
27 this.domain = null; | 27 this.domain = null; |
28 this.resource = null; | 28 this.resource = null; |
29 | 29 |
30 if (aJID) | 30 if (aJID) |
31 this.full = aJID; | 31 this.full = aJID.toString(); |
32 | 32 |
33 //TODO: use a stringprep library to validate the input. | 33 //TODO: use a stringprep library to validate the input. |
34 }; | 34 }; |
35 | 35 |
36 Lightstring.JID.prototype = { | 36 Lightstring.JID.prototype = { |
89 | 89 |
90 return full; | 90 return full; |
91 }, | 91 }, |
92 | 92 |
93 set full(aJID) { | 93 set full(aJID) { |
94 | |
94 if (!aJID) | 95 if (!aJID) |
95 return; | 96 return; |
96 | 97 |
97 var s = aJID.indexOf('/'); | 98 var s = aJID.indexOf('/'); |
98 if (s == -1) | 99 if (s == -1) |