diff --git a/src/DragDropManager.js b/src/DragDropManager.js index 627c1d4..1026221 100644 --- a/src/DragDropManager.js +++ b/src/DragDropManager.js @@ -4,9 +4,9 @@ import * as dragDropActions from './actions/dragDrop'; import DragDropMonitor from './DragDropMonitor'; export default class DragDropManager { - constructor(createBackend) { + constructor(createBackend, context = {}) { const store = createStore(reducer); - + this.context = context; this.store = store; this.monitor = new DragDropMonitor(store); this.registry = this.monitor.registry; @@ -26,6 +26,10 @@ export default class DragDropManager { } } + getContext() { + return this.context; + } + getMonitor() { return this.monitor; }