From bf3d102e411e992da4ed1ca0b0328cb002ea9909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Marcelino?= Date: Mon, 10 Nov 2014 17:15:30 -0300 Subject: [PATCH] Bug fixes Fixed a problem that was causing conflicts in 2 modules with the same function name. --- changelog.md | 6 +++++- lib/acqua.js | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index a54f3c7..e664540 100644 --- a/changelog.md +++ b/changelog.md @@ -4,4 +4,8 @@ First Release of Acqua # Version 0.0.1 -**[BUG]** Fixed problem with the module loading order \ No newline at end of file +**[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. \ No newline at end of file diff --git a/lib/acqua.js b/lib/acqua.js index 320ac92..6766faa 100644 --- a/lib/acqua.js +++ b/lib/acqua.js @@ -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) { diff --git a/package.json b/package.json index 4675426..55de7dd 100644 --- a/package.json +++ b/package.json @@ -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": {