webspinner/Deferred — pull request #1 by bloveridge (2011-10-12 18:29:14+00:00)
Title: define for AMD, CommonJS, or global context depending on environment

Hi,

I wanted to utilize this in the browser, in an environment where jquery is not available. This patch attempts to define Deferred for AMD, CommonJS, or ultimately the window if neither of the others exists. This allows it to continue to be used in Node.js, while also working in the browser, using the method utilized in https://github.com/briancavalier/when.js

Note, the reason I did not increase the indent level is because if this pull request is not applied, it will make maintaining my personal branch much more straightforward if not every line of code has been modified.

Thanks,

Ben