DmitryBaranovskiy/eve — pull request #6 by jhinch (2012-01-16 05:35:51+00:00)
Title: add support for AMD

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;