aino/throbber.js — pull request #1 by michaelday (2013-04-03 05:17:18+00:00)
Title: Adds AMD support

This pull request adds support for AMD/CommonJS. It detects the presents of module.exports or define and uses them if they exist. If neither of those exist, Throbber is added to the window object just like before.

I created this change because I'm using throbber.js in a project that uses require.js, and needed to be able to use it properly with require instead of creating a new object in window.