ripple 0.2.180 → 0.2.182

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ripple is an elegant TypeScript UI framework",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.2.180",
6
+ "version": "0.2.182",
7
7
  "type": "module",
8
8
  "module": "src/runtime/index-client.js",
9
9
  "main": "src/runtime/index-client.js",
@@ -84,6 +84,6 @@
84
84
  "vscode-languageserver-types": "^3.17.5"
85
85
  },
86
86
  "peerDependencies": {
87
- "ripple": "0.2.180"
87
+ "ripple": "0.2.182"
88
88
  }
89
89
  }
@@ -368,7 +368,10 @@ export function destroy_block(block, remove_dom = true) {
368
368
  var removed = false;
369
369
  var f = block.f;
370
370
 
371
- if ((remove_dom && (f & (BRANCH_BLOCK | ROOT_BLOCK)) !== 0) || (f & HEAD_BLOCK) !== 0) {
371
+ if (
372
+ (remove_dom && (f & (BRANCH_BLOCK | ROOT_BLOCK)) !== 0 && (f & TRY_BLOCK) === 0) ||
373
+ (f & HEAD_BLOCK) !== 0
374
+ ) {
372
375
  var s = block.s;
373
376
  if (s !== null) {
374
377
  remove_block_dom(s.start, s.end);