diff jid.js @ 2:eb5b6d3ab09b

Better import of ns and jid; fix email and missing ns.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 13 Jul 2011 13:11:54 +0200
parents f62b5c395a48
children 461a24a5a788
line wrap: on
line diff
--- a/jid.js
+++ b/jid.js
@@ -101,5 +101,5 @@ var JID = function(jid) {
 		this.full = jid;
 };
 
-if (typeof exports === 'object')
-	exports.JID = JID;
+if (module)
+	module.exports = JID;