mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +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";
|
import { ColumnDragHandler } from "./column_drag_handler";
|
||||||
|
|
||||||
export class BoardDragHandler {
|
export class BoardDragHandler {
|
||||||
private $container: JQuery<HTMLElement>;
|
|
||||||
private api: BoardApi;
|
|
||||||
private context: DragContext;
|
|
||||||
|
|
||||||
private noteDragHandler: NoteDragHandler;
|
private noteDragHandler: NoteDragHandler;
|
||||||
private columnDragHandler: ColumnDragHandler;
|
private columnDragHandler: ColumnDragHandler;
|
||||||
|
|
||||||
@ -16,10 +12,6 @@ export class BoardDragHandler {
|
|||||||
api: BoardApi,
|
api: BoardApi,
|
||||||
context: DragContext,
|
context: DragContext,
|
||||||
) {
|
) {
|
||||||
this.$container = $container;
|
|
||||||
this.api = api;
|
|
||||||
this.context = context;
|
|
||||||
|
|
||||||
// Initialize specialized drag handlers
|
// Initialize specialized drag handlers
|
||||||
this.noteDragHandler = new NoteDragHandler($container, api, context);
|
this.noteDragHandler = new NoteDragHandler($container, api, context);
|
||||||
this.columnDragHandler = new ColumnDragHandler($container, api, context);
|
this.columnDragHandler = new ColumnDragHandler($container, api, context);
|
||||||
@ -45,7 +37,6 @@ export class BoardDragHandler {
|
|||||||
|
|
||||||
// Common methods
|
// Common methods
|
||||||
updateApi(newApi: BoardApi) {
|
updateApi(newApi: BoardApi) {
|
||||||
this.api = newApi;
|
|
||||||
this.noteDragHandler.updateApi(newApi);
|
this.noteDragHandler.updateApi(newApi);
|
||||||
this.columnDragHandler.updateApi(newApi);
|
this.columnDragHandler.updateApi(newApi);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user