Removed factory function export value on CommonJS wrapper

This commit is contained in:
ifandelse 2014-01-24 00:18:12 -05:00
parent eaccef227e
commit f8cdebd019

View file

@ -2,10 +2,7 @@
(function ( root, factory ) {
if ( typeof module === "object" && module.exports ) {
// Node, or CommonJS-Like environments
module.exports = function ( _ ) {
_ = _ || require( "underscore" );
return factory( _, this );
};
module.exports = factory( require( "underscore" ), this );
} else if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( ["underscore"], function ( _ ) {