Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
s/module/modularize to avoid collision with objects like http://nodej…
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Jun 4, 2014
1 parent 6f25dc2 commit 1f7ae77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
module = null;
break;
case 2:
// dependsOrFactory is `factory` in this case
module = dependsOrFactory.apply(this);
break;
default:
// dependsOrFactory is `depends` in this case
module = withDependencies(moduleFactory, dependsOrFactory);
break;
}
Expand All @@ -50,7 +52,8 @@
// exports

scope.marshal = marshal;
scope.module = module;
// `module` confuses commonjs detectors
scope.modularize = module;
scope.using = using;

})(window);

0 comments on commit 1f7ae77

Please sign in to comment.