diff 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
line wrap: on
line diff
--- a/jid.js
+++ b/jid.js
@@ -101,5 +101,5 @@ var JID = function(jid) {
 		this.full = jid;
 };
 
-if (module)
+if (typeof module !== 'undefined')
 	module.exports = JID;