Comparing version 0.6.0 to 0.6.1
@@ -67,5 +67,7 @@ (function(root, factory) { | ||
var args = fn.toArray(arguments); | ||
var handler = args[0]; | ||
var partialArgs = args.slice(1); | ||
return function () { | ||
return fn.apply(args[0], fn.concat(args.slice(1), fn.toArray(arguments)) ); | ||
return fn.apply(handler, fn.concat(partialArgs, fn.toArray(arguments)) ); | ||
}; | ||
@@ -72,0 +74,0 @@ }; |
{ | ||
"name": "fn.js", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Functional programming strategy library for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "build/fn.js", |
@@ -56,5 +56,7 @@ 'use strict'; | ||
var args = fn.toArray(arguments); | ||
var handler = args[0]; | ||
var partialArgs = args.slice(1); | ||
return function () { | ||
return fn.apply(args[0], fn.concat(args.slice(1), fn.toArray(arguments)) ); | ||
return fn.apply(handler, fn.concat(partialArgs, fn.toArray(arguments)) ); | ||
}; | ||
@@ -61,0 +63,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43673
1121