jquery/qunit — Issue #171: Improve exports
Author: jzaefferer
Created: 2011-11-03 09:35:23+00:00
State: open

Currenty exports implementation exposes QUnit as an exports property, as well as adding all QUnit property. That's probably wrong.

The Backbone approach could be a good model:

var Backbone;
if (typeof exports !== 'undefined') {
Backbone = exports;
} else {
Backbone = this.Backbone = {};
}