diff ns.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/ns.js
+++ b/ns.js
@@ -12,5 +12,5 @@ var ns = {
 
 var parsers = {};
 
-if (typeof exports === 'object')
-	exports.ns = ns;
+if (module)
+	module.exports = ns;