fix(resizing) Fixing handleResize on viewer loading
This commit is contained in:
parent
ec9c0d444d
commit
25646e3192
@ -28,7 +28,9 @@ Template.imageControls.onRendered(() => {
|
|||||||
|
|
||||||
Template.imageControls.onDestroyed(() => {
|
Template.imageControls.onDestroyed(() => {
|
||||||
const instance = Template.instance();
|
const instance = Template.instance();
|
||||||
$(window).off('resize', instance.handleResize);
|
if (instance.handleResize) {
|
||||||
|
$(window).off('resize', instance.handleResize);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Template.imageControls.events({
|
Template.imageControls.events({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user