Fix returning true/false in can().chain().run()

I think this was previously meant to return a function in the proxy object getter, but now it's a standalone function and should return the result of the callbacks.
This commit is contained in:
Mark Zepeda 2021-05-02 20:04:10 -05:00 committed by GitHub
parent 3e14f24ef5
commit 7426be019e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ export default class CommandManager {
view.dispatch(tr)
}
return () => callbacks.every(callback => callback === true)
return callbacks.every(callback => callback === true)
}
const chain = {