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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user