Move ohif:commands into ohif:core
This commit is contained in:
1 parent
da36c33c70
commit
1abd0e6f9d
2 files changed
+1
-1
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { ReactiveVar } from 'meteor/reactive-var';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { CommandsManager } from './classes/CommandsManager';
|
||||
|
||||
// Create context namespace using a ReactiveVar
|
||||
const context = new ReactiveVar(null);
|
||||
|
||||
// Append context namespace to OHIF namespace
|
||||
OHIF.context = context;
|
||||
|
||||
// Create commands namespace using a CommandsManager class instance
|
||||
const commands = new CommandsManager(context);
|
||||
|
||||
// Append commands namespace to OHIF namespace
|
||||
OHIF.commands = commands;
|
||||
|
||||
// Export relevant objects
|
||||
export { context, commands };
|
||||
Reference in new issue
Block a user