msc-collages
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -137,3 +137,3 @@ import { _wcl } from './common-lib.js'; | ||
this.#data = { | ||
controller: new AbortController() | ||
controller: '' | ||
}; | ||
@@ -158,4 +158,2 @@ | ||
async connectedCallback() { | ||
const signal = this.#data.controller.signal; | ||
const { config, error } = await _wcl.getWCConfig(this); | ||
@@ -178,2 +176,4 @@ | ||
// evts | ||
this.#data.controller = new AbortController(); | ||
const signal = this.#data.controller.signal; | ||
this.#nodes.grid.addEventListener('click', this._onCollageClick, { signal }); | ||
@@ -183,4 +183,5 @@ } | ||
disconnectedCallback() { | ||
// evts | ||
this.#data.controller.abort(); | ||
if (this.#data?.controller) { | ||
this.#data.controller.abort(); | ||
} | ||
} | ||
@@ -187,0 +188,0 @@ |
{ | ||
"name": "msc-collages", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "People love collages. With collages we could combined several images together and make them more vivid and interesting. Developers could apply <msc-collages /> instead of annoying HTML code & CSS setting. All we need to do is just make a few setting and everything will be all set.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70099
1660