fix(core-executor): handlers removement

This commit is contained in:
Wroud
2020-11-06 22:58:29 +03:00
parent f28c8ce8f5
commit 98e9bb7556
@@ -47,7 +47,7 @@ export class Executor<T> implements IExecutor<T> {
}
removeHandler(handler: IExecutorHandler<T>) {
this.handlers = this.handlers.filter(h => h === handler);
this.handlers = this.handlers.filter(h => h !== handler);
}
addPostHandler(handler: IExecutorHandler<T>) {
@@ -56,6 +56,6 @@ export class Executor<T> implements IExecutor<T> {
}
removePostHandler(handler: IExecutorHandler<T>) {
this.postHandlers = this.postHandlers.filter(h => h === handler);
this.postHandlers = this.postHandlers.filter(h => h !== handler);
}
}