comparison jid.js @ 8:461a24a5a788

Silent errors when testing if we are server- or client-side.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 02 Nov 2011 09:48:28 -0700
parents eb5b6d3ab09b
children
comparison
equal deleted inserted replaced
7:7ab6b48122af 8:461a24a5a788
99 99
100 if (jid) 100 if (jid)
101 this.full = jid; 101 this.full = jid;
102 }; 102 };
103 103
104 if (module) 104 if (typeof module !== 'undefined')
105 module.exports = JID; 105 module.exports = JID;