Skip to content
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.

Commit

Permalink
Merge pull request #45 from react-dnd/drag_manager_context
Browse files Browse the repository at this point in the history
Add a context property to the DragDropManager. [v2]
  • Loading branch information
darthtrevino authored Jan 25, 2017
2 parents 5a24d23 + 1dfcd64 commit 70c11d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/DragDropManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -26,6 +26,10 @@ export default class DragDropManager {
}
}

getContext() {
return this.context;
}

getMonitor() {
return this.monitor;
}
Expand Down

0 comments on commit 70c11d6

Please sign in to comment.