Registering tool commands

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2017-06-14 09:19:49 +02:00
1 parent dbbcbe6e67
commit fa7ad2c51e
7 files changed
+72 -16

No files matched your search

+6 -3
View File
@@ -5,11 +5,14 @@ import { CommandsManager } from 'meteor/ohif:commands/client/classes/CommandsMan
// Create context namespace using a ReactiveVar
const context = new ReactiveVar(null);
// Create commands namespace using a CommandsManager class instance
const commands = new CommandsManager(context);
// 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 };