Skip to content

Commit

Permalink
support the context of 'this' in processors
Browse files Browse the repository at this point in the history
  • Loading branch information
fengluo committed Sep 18, 2019
1 parent c32431e commit 11de7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = function processorPlugin(bookshelf) {
if (!Array.isArray(processes)) processes = [processes]

processes.forEach(process => {
value = process(value)
value = process.call(this, value)
})

return value
Expand Down

0 comments on commit 11de7b3

Please sign in to comment.