mol_plot_all 1.2.798 → 1.2.800

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/node.mjs CHANGED
@@ -2180,6 +2180,9 @@ var $;
2180
2180
  function $mol_dom_render_attributes(el, attrs) {
2181
2181
  for (let name in attrs) {
2182
2182
  let val = attrs[name];
2183
+ if (val === undefined) {
2184
+ continue;
2185
+ }
2183
2186
  if (val === null || val === false) {
2184
2187
  if (!el.hasAttribute(name))
2185
2188
  continue;
@@ -2765,7 +2768,6 @@ var $;
2765
2768
  $mol_dom_render_styles(node, this.style_size());
2766
2769
  const attr = this.attr();
2767
2770
  const style = this.style();
2768
- const fields = this.field();
2769
2771
  $mol_dom_render_attributes(node, attr);
2770
2772
  $mol_dom_render_styles(node, style);
2771
2773
  return node;
@@ -2861,7 +2863,7 @@ var $;
2861
2863
  }
2862
2864
  attr() {
2863
2865
  return {
2864
- mol_theme: this.theme(),
2866
+ mol_theme: this.theme() || undefined,
2865
2867
  };
2866
2868
  }
2867
2869
  style_size() {
@@ -3023,11 +3025,7 @@ var $;
3023
3025
  (function ($) {
3024
3026
  class $mol_plugin extends $mol_view {
3025
3027
  dom_node_external(next) {
3026
- const host = $mol_owning_get(this).host;
3027
- return next ?? host.dom_node();
3028
- }
3029
- attr_static() {
3030
- return {};
3028
+ return next ?? $mol_owning_get(this).host.dom_node();
3031
3029
  }
3032
3030
  render() {
3033
3031
  this.dom_node_actual();
package/node.test.js CHANGED
@@ -2172,6 +2172,9 @@ var $;
2172
2172
  function $mol_dom_render_attributes(el, attrs) {
2173
2173
  for (let name in attrs) {
2174
2174
  let val = attrs[name];
2175
+ if (val === undefined) {
2176
+ continue;
2177
+ }
2175
2178
  if (val === null || val === false) {
2176
2179
  if (!el.hasAttribute(name))
2177
2180
  continue;
@@ -2757,7 +2760,6 @@ var $;
2757
2760
  $mol_dom_render_styles(node, this.style_size());
2758
2761
  const attr = this.attr();
2759
2762
  const style = this.style();
2760
- const fields = this.field();
2761
2763
  $mol_dom_render_attributes(node, attr);
2762
2764
  $mol_dom_render_styles(node, style);
2763
2765
  return node;
@@ -2853,7 +2855,7 @@ var $;
2853
2855
  }
2854
2856
  attr() {
2855
2857
  return {
2856
- mol_theme: this.theme(),
2858
+ mol_theme: this.theme() || undefined,
2857
2859
  };
2858
2860
  }
2859
2861
  style_size() {
@@ -3015,11 +3017,7 @@ var $;
3015
3017
  (function ($) {
3016
3018
  class $mol_plugin extends $mol_view {
3017
3019
  dom_node_external(next) {
3018
- const host = $mol_owning_get(this).host;
3019
- return next ?? host.dom_node();
3020
- }
3021
- attr_static() {
3022
- return {};
3020
+ return next ?? $mol_owning_get(this).host.dom_node();
3023
3021
  }
3024
3022
  render() {
3025
3023
  this.dom_node_actual();