Permalink
Browse files

Fix params variable leak

  • Loading branch information...
1 parent 71663ed commit a0dc2f613fb1dfd7f6e4e4c08f869ccc9d397029 @baryshev committed Feb 4, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/aop.js
  2. +2 −2 package.json
View
@@ -1,5 +1,5 @@
module.exports.wrap = function(that, target, aspect) {
var params = Array.prototype.slice.call(arguments, 3);
- var wrapper = function() { params.unshift(target, arguments); aspect.apply(that, params); }
+ var wrapper = function() { aspect.apply(that, [target, arguments].concat(params)); }
return wrapper;
};
View
@@ -1,10 +1,10 @@
{
"name" : "aop",
- "version" : "0.1.2",
+ "version" : "0.1.3",
"description" : "Simple AOP realization for async applications",
"keywords": ["aop"],
"author" : "Vadim M. Baryshev <vadimbaryshev@gmail.com>",
"repository" : { "type" : "git", "url" : "https://github.com/baryshev/aop.git" },
"main" : "index",
"engines" : { "node": ">= 0.2.0" }
-}
+}

0 comments on commit a0dc2f6

Please sign in to comment.