We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cad1fa commit 5f529f5Copy full SHA for 5f529f5
core/dom.ts
@@ -440,7 +440,7 @@ export let WithLifecycle = <BaseConstructor extends { new (...params: any[]): HT
440
}
441
442
$bind(callback: Lifecycle.OnConnected<Base>): Lifecycle.OffConnected {
443
- this.#callbacks.set(callback, null);
+ this.#callbacks.set(callback, this.isConnected ? callback(this) : null);
444
return () => {
445
let off = this.#callbacks.get(callback);
446
this.#callbacks.delete(callback);
deno.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@purifyjs/core",
3
- "version": "0.3.2",
+ "version": "0.4.0-alpha.1",
4
"workspace": ["./apps/vite", "./apps/size"],
5
"exports": {
6
".": "./core/mod.ts",
0 commit comments