@manyducks.co/dolla 0.73.0 → 0.74.0

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/lib/index.js CHANGED
@@ -738,6 +738,9 @@ var Conditional = class {
738
738
  handle.disconnect();
739
739
  }
740
740
  this.connectedContent = [];
741
+ if (this.node.parentNode == null) {
742
+ return;
743
+ }
741
744
  if (value && this.thenContent) {
742
745
  this.connectedContent = renderMarkupToDOM(this.thenContent, this);
743
746
  } else if (!value && this.elseContent) {
@@ -3175,7 +3178,6 @@ function RouterStore(ctx) {
3175
3178
  redirect = "/" + redirect;
3176
3179
  }
3177
3180
  }
3178
- console.log({ parts, route, parents, layers });
3179
3181
  routes2.push({
3180
3182
  pattern: "/" + joinPath([...parts, ...splitPath(route.path)]),
3181
3183
  meta: {
@@ -3260,8 +3262,10 @@ function RouterStore(ctx) {
3260
3262
  ctx.onConnected(() => {
3261
3263
  history.listen(onRouteChange);
3262
3264
  onRouteChange(history);
3265
+ ctx.info("Intercepting <a> clicks within root element:", appContext.rootElement);
3263
3266
  catchLinks(appContext.rootElement, (anchor) => {
3264
3267
  let href = anchor.getAttribute("href");
3268
+ ctx.info("Intercepted link click", anchor, href);
3265
3269
  if (!/^https?:\/\/|^\//.test(href)) {
3266
3270
  href = joinPath([history.location.pathname, href]);
3267
3271
  }
@@ -3358,7 +3362,6 @@ function RouterStore(ctx) {
3358
3362
  }
3359
3363
  if (parentLayer) {
3360
3364
  parentLayer.handle.setChildren(rendered);
3361
- ctx.log({ rendered, markup: matchedLayer.markup });
3362
3365
  } else {
3363
3366
  appContext.rootView.setChildren(rendered);
3364
3367
  }