Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 1eff6ea

Browse files
committed
Remove an extraneous RequireJS optimizer invocation
Credit @jnu.
1 parent 2a253ba commit 1eff6ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/requirejs/rails/rjs_driver.js.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@ var errback = function(error) {
3535
// Do a series of builds of individual files, using the args suggested by:
3636
// http://requirejs.org/docs/optimization.html#onejs
3737
//
38-
// r.js will eventually need a nested call idiom to handle async
38+
// r.js will eventually need a nested call idiom to handle async
3939
// builds. Anticipating that need.
4040
var async_runner = module_specs.reduceRight(function(prev, curr) {
4141
return function (buildReportText) {
42-
requirejs.optimize(mix(curr), prev);
4342
requirejs.optimize(mix(curr), prev, errback);
4443
};
4544
}, function(buildReportText) {} );

0 commit comments

Comments
 (0)