Skip to content

Commit

Permalink
Fix params variable leak
Browse files Browse the repository at this point in the history
  • Loading branch information
baryshev committed Feb 4, 2012
1 parent 71663ed commit a0dc2f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/aop.js
@@ -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;
};
4 changes: 2 additions & 2 deletions package.json
@@ -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.