documentcloud/backbone — pull request #1561 by medikoo (2012-08-19 11:58:43+00:00)
Title: Compliant CommonJS/NodeJS module

Currently Backbone cannot be used as CommonJS/NodeJS module on client-side (e.g. with help of bundlers like [Webmake](https://github.com/medikoo/modules-webmake)). It's caused by hardcoded assumption that `this` is `global`, where in NodeJS modules `this === exports`.

It's a bit weird as I see that Backbone tries to be CommonJS module (e.g. what's the reasoning behind require calls to `underscore` inside?)

The thing that would fix that is cross-environment and cross-mode (strict/non-strict) reference to global