Comparing version 0.1.0 to 0.1.1
@@ -31,3 +31,3 @@ 'use strict'; | ||
case 'nothing': | ||
return func.apply(undefined, args); | ||
return func.bind(this).apply(undefined, args); | ||
@@ -34,0 +34,0 @@ default: |
{ | ||
"name": "tack-on", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Tack on functions to things that should have had them all along.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -57,2 +57,6 @@ # tack-on | ||
the `action` function can return `"tack"`, `"compose"`, or `"nothing"`. | ||
When doing the `"nothing"` action, the binding is passed through to the tacked function. | ||
## `compose` | ||
@@ -59,0 +63,0 @@ Make functions composable with the bind operator. `compose` assumes functions that take only one argument. |
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
5614
78
6