Skip to content

Commit

Permalink
fix(img): destroy context
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Dec 1, 2023
1 parent ad89e56 commit 05ba451
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/Img/ImgBase.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from '@symbiotejs/symbiote';
import { BaseComponent, Data } from '@symbiotejs/symbiote';
import { applyTemplateData } from '../../utils/template-utils.js';
import { createCdnUrl, createCdnUrlModifiers, createOriginalUrl } from '../../utils/cdn-utils.js';
import { PROPS_MAP } from './props-map.js';
Expand Down Expand Up @@ -339,6 +339,7 @@ export class ImgBase extends BaseComponent {
});
this._isnObserver = null;
}
Data.deleteCtx(this);
}

static get observedAttributes() {
Expand Down

0 comments on commit 05ba451

Please sign in to comment.