This allows eve to be used by requirejs or other commonjs client side libraries. Nodejs doesn't support AMD in a consistent way to requirejs so I couldn't replace the typeof module != 'undefined' check.
in node
define('eve', [], function() { return eve; })
This allows eve to be used by requirejs or other commonjs client side libraries. Nodejs doesn't support AMD in a consistent way to requirejs so I couldn't replace the typeof module != 'undefined' check.
in node define('eve', [], function() { return eve; })
equates to var eve = require('eve').eve;