diff --git a/lib/vargs.js b/lib/vargs.js index ae801bd..a8feb7a 100644 --- a/lib/vargs.js +++ b/lib/vargs.js @@ -21,7 +21,7 @@ // args.array // all arguments, including callback // } // -exports.Constructor = function Vargs(arguments) { +exports.Constructor = function Vargs() { this.array = Array.prototype.slice.call(arguments); this.__defineGetter__('length', function () { if (this.callbackGiven()) { diff --git a/package.json b/package.json new file mode 100644 index 0000000..554f066 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "vargs", + "version": "0.1.1", + "description": "variable argument handling for functions taking a callback", + "repository": { + "type": "git", + "url": "https://github.com/cloudhead/vargs" + }, + "author": "Alexis Sellier", + "bugs": { + "url": "https://github.com/cloudhead/vargs/issues" + }, + "homepage": "https://github.com/cloudhead/vargs" +}