Skip to content
Browse files

change order of arguments in define object's values (callbacks)

  • Loading branch information...
1 parent a096435 commit a2063cd387ccbcd3f0a04402a60edfa843fb1236 @netoctone committed Jan 18, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/assets/javascripts/sprockets/commonjs.js
View
6 lib/assets/javascripts/sprockets/commonjs.js
@@ -10,9 +10,9 @@
} else if (fn = modules[path] || modules[path = indexPath]) {
module = {id: path, exports: {}};
cache[path] = module.exports;
- fn(module.exports, function(name) {
+ fn(module, function(name) {
return require(name, dirname(path));
- }, module);
+ }, module.exports);
return cache[path] = module.exports;
} else {
throw 'module ' + name + ' not found';
@@ -57,4 +57,4 @@
}
return this.require;
-}).call(this);
+}).call(this);

0 comments on commit a2063cd

Please sign in to comment.
Something went wrong with that request. Please try again.