Skip to content

Commit

Permalink
fix(macro.chain): now return the chained functions results
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Aug 30, 2019
1 parent a951033 commit 8efd682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/macro.js
Expand Up @@ -882,7 +882,7 @@ export function newInstance(extend, className) {
// ----------------------------------------------------------------------------

export function chain(...fn) {
return (...args) => fn.filter((i) => !!i).forEach((i) => i(...args));
return (...args) => fn.filter((i) => !!i).map((i) => i(...args));
}

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit 8efd682

Please sign in to comment.