Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
Fixed a problem that was causing conflicts in 2 modules with the same
function name.
  • Loading branch information
sergiofilhowz committed Nov 10, 2014
1 parent e26699d commit bf3d102
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ First Release of Acqua

# Version 0.0.1

**[BUG]** Fixed problem with the module loading order
**[BUG]** Fixed problem with the module loading order

# Version 0.0.2

**[BUG]** Fixed a problem that was sharing every function in the same object instance, causing conflicts in 2 modules with the same function name.
2 changes: 1 addition & 1 deletion lib/acqua.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Acqua.prototype.execModule = function ($module, modulePath) {
if (_.isString(modulePath)) {
this.log('Importing module: ' + modulePath);
}
return $module.apply(undefined, dependencies);
return $module.apply({}, dependencies);
};

Acqua.prototype.importModule = function (modulePath) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "acqua",
"version": "0.0.1",
"version": "0.0.2",
"description": "A NodeJS Module for Dependency Injection",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit bf3d102

Please sign in to comment.