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