Move towards NPM for Cornerstone dependencies
This commit is contained in:
1 parent
6c98c6a589
commit
ddef3c4710
59 files changed
+2435
-29162
No files matched your search
+3
-4
@@ -35,6 +35,7 @@ Template.imageThumbnail.onRendered(() => {
|
||||
const element = $element.get(0);
|
||||
|
||||
instance.refreshImage = () => {
|
||||
console.log('imageThumbnail refreshImage');
|
||||
if (!element) {
|
||||
return;
|
||||
}
|
||||
@@ -84,16 +85,14 @@ Template.imageThumbnail.onRendered(() => {
|
||||
});
|
||||
|
||||
Template.imageThumbnail.onDestroyed(() => {
|
||||
console.log('imagethumbnail onDestroyed');
|
||||
const instance = Template.instance();
|
||||
|
||||
// Declare DOM and jQuery objects
|
||||
const $parent = instance.$('.imageThumbnail');
|
||||
const $element = $parent.find('.imageThumbnailCanvas');
|
||||
const element = $element.get(0);
|
||||
|
||||
if (element) {
|
||||
cornerstone.disable(element);
|
||||
}
|
||||
cornerstone.disable(element);
|
||||
});
|
||||
|
||||
Template.imageThumbnail.helpers({
|
||||
|
||||
Reference in new issue
Block a user