centralize handlers, allow multiple handlers per model
This commit is contained in:
@@ -70,8 +70,10 @@ export default class TaskPageViewModel {
|
||||
this.taskModel = taskModel;
|
||||
|
||||
// handlers
|
||||
taskModel.setBoardHandler((boardInfoFileContent: BoardInfoFileContent) => {
|
||||
this.showBoard(boardInfoFileContent);
|
||||
});
|
||||
taskModel.boardHandlerManager.addHandler(
|
||||
(boardInfoFileContent: BoardInfoFileContent) => {
|
||||
this.showBoard(boardInfoFileContent);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user