Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'deactivate' of undefined #162

Closed
kacper1095 opened this issue Feb 14, 2018 · 2 comments
Closed

Cannot read property 'deactivate' of undefined #162

kacper1095 opened this issue Feb 14, 2018 · 2 comments

Comments

@kacper1095
Copy link

When I try to run Target or any subtool of Target I get following stacktrace error in the LesionTracker:

toolManager.js:325 Uncaught TypeError: Cannot read property 'deactivate' of undefined
    at toolManager.js:325
    at Array.forEach (<anonymous>)
    at toolManager.js:316
    at Array.forEach (<anonymous>)
    at Object.setActiveToolForElement (toolManager.js:313)
    at HTMLDivElement.<anonymous> (toolManager.js:523)
    at Function.each (jquery.js?hash=e5fc9cebb2e37c48ddfaf76e0ab0b77cb6ce6e52:440)
    at jQuery.fn.init.each (jquery.js?hash=e5fc9cebb2e37c48ddfaf76e0ab0b77cb6ce6e52:192)
    at setActiveTool (toolManager.js:522)
    at CommandsManager.run (CommandsManager.js:103)

Same situation with Temp.

Moreover (correct me if this should be a separate issue), buttons Non-Target, Trial and Hud are locked.

@swederik
Copy link
Member

Thanks for the report! We will look into this...

@swederik swederik added the bug label Feb 14, 2018
@kacper1095
Copy link
Author

kacper1095 commented Feb 15, 2018

Issue was fixed by correct naming of newly created tools. I defined twice toolNameTouch for cornerstoneTools instead of toolName AND toolNameTouch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants