Skip to content

Commit 5f529f5

Browse files
committed
0.4.0-alpha.1
1 parent 0cad1fa commit 5f529f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ export let WithLifecycle = <BaseConstructor extends { new (...params: any[]): HT
440440
}
441441

442442
$bind(callback: Lifecycle.OnConnected<Base>): Lifecycle.OffConnected {
443-
this.#callbacks.set(callback, null);
443+
this.#callbacks.set(callback, this.isConnected ? callback(this) : null);
444444
return () => {
445445
let off = this.#callbacks.get(callback);
446446
this.#callbacks.delete(callback);

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@purifyjs/core",
3-
"version": "0.3.2",
3+
"version": "0.4.0-alpha.1",
44
"workspace": ["./apps/vite", "./apps/size"],
55
"exports": {
66
".": "./core/mod.ts",

0 commit comments

Comments
 (0)