gnim 1.5.3 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/dist/jsx/For.ts CHANGED
@@ -42,12 +42,12 @@ export function For<Item, El extends JSX.Element, Key>({
42
42
  const fragment = new Fragment<El>()
43
43
 
44
44
  function remove({ item, child, index: [index], scope }: MapItem) {
45
+ scope.dispose()
45
46
  if (typeof cleanup === "function") {
46
47
  cleanup(child, item, index.get())
47
48
  } else if (cleanup !== null) {
48
49
  env.defaultCleanup(child)
49
50
  }
50
- scope.dispose()
51
51
  }
52
52
 
53
53
  function callback(itareable: Iterable<Item>) {
package/dist/jsx/With.ts CHANGED
@@ -30,14 +30,13 @@ export function With<T, E extends JSX.Element>({
30
30
 
31
31
  function remove(child: E) {
32
32
  fragment.removeChild(child)
33
+ if (scope) scope.dispose()
33
34
 
34
35
  if (typeof cleanup === "function") {
35
36
  cleanup(child)
36
37
  } else if (cleanup !== null) {
37
38
  env.defaultCleanup(child)
38
39
  }
39
-
40
- if (scope) scope.dispose()
41
40
  }
42
41
 
43
42
  function callback(v: T) {
@@ -62,7 +61,6 @@ export function With<T, E extends JSX.Element>({
62
61
  for (const child of fragment.children) {
63
62
  remove(child)
64
63
  }
65
- scope.dispose()
66
64
  })
67
65
 
68
66
  return fragment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gnim",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "type": "module",
5
5
  "author": "Aylur",
6
6
  "license": "MIT",