vert-x/vert.x — pull request #323 by kondi (2012-08-13 13:48:46+00:00)
Title: AMD compliance for vertxbus

SockJS is already compliant with AMD so vertxbus can define it as a dependency,

After my modification the library is still working if you simply load it using a script tag, but you can optimize the loading and benefit of the automatic dependency management if you are using an AMD compliant loader.

See more about AMD and why to use it: http://requirejs.org/docs/whyamd.html

The implementation is based on the following UMD pattern: https://github.com/umdjs/umd/blob/master/amdWeb.js

The changeset looks a bit complicated here on github because I had to indent the lines for the factory function, but without the whitespace changes you can see that there are only few added lines in the beginning and in the end of the file.