mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
refactor(views/board): unnecessary fields
This commit is contained in:
parent
62de52ab17
commit
08678e74e6
@ -4,10 +4,6 @@ import { NoteDragHandler } from "./note_drag_handler";
|
||||
import { ColumnDragHandler } from "./column_drag_handler";
|
||||
|
||||
export class BoardDragHandler {
|
||||
private $container: JQuery<HTMLElement>;
|
||||
private api: BoardApi;
|
||||
private context: DragContext;
|
||||
|
||||
private noteDragHandler: NoteDragHandler;
|
||||
private columnDragHandler: ColumnDragHandler;
|
||||
|
||||
@ -16,10 +12,6 @@ export class BoardDragHandler {
|
||||
api: BoardApi,
|
||||
context: DragContext,
|
||||
) {
|
||||
this.$container = $container;
|
||||
this.api = api;
|
||||
this.context = context;
|
||||
|
||||
// Initialize specialized drag handlers
|
||||
this.noteDragHandler = new NoteDragHandler($container, api, context);
|
||||
this.columnDragHandler = new ColumnDragHandler($container, api, context);
|
||||
@ -45,7 +37,6 @@ export class BoardDragHandler {
|
||||
|
||||
// Common methods
|
||||
updateApi(newApi: BoardApi) {
|
||||
this.api = newApi;
|
||||
this.noteDragHandler.updateApi(newApi);
|
||||
this.columnDragHandler.updateApi(newApi);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user