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.d.ts +0 -3
- package/node.deps.json +1 -1
- package/node.js +5 -7
- package/node.js.map +1 -1
- package/node.mjs +5 -7
- package/node.test.js +5 -7
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +0 -3
- package/web.deps.json +1 -1
- package/web.js +5 -7
- package/web.js.map +1 -1
- package/web.mjs +5 -7
package/web.mjs
CHANGED
|
@@ -1613,6 +1613,9 @@ var $;
|
|
|
1613
1613
|
function $mol_dom_render_attributes(el, attrs) {
|
|
1614
1614
|
for (let name in attrs) {
|
|
1615
1615
|
let val = attrs[name];
|
|
1616
|
+
if (val === undefined) {
|
|
1617
|
+
continue;
|
|
1618
|
+
}
|
|
1616
1619
|
if (val === null || val === false) {
|
|
1617
1620
|
if (!el.hasAttribute(name))
|
|
1618
1621
|
continue;
|
|
@@ -2198,7 +2201,6 @@ var $;
|
|
|
2198
2201
|
$mol_dom_render_styles(node, this.style_size());
|
|
2199
2202
|
const attr = this.attr();
|
|
2200
2203
|
const style = this.style();
|
|
2201
|
-
const fields = this.field();
|
|
2202
2204
|
$mol_dom_render_attributes(node, attr);
|
|
2203
2205
|
$mol_dom_render_styles(node, style);
|
|
2204
2206
|
return node;
|
|
@@ -2294,7 +2296,7 @@ var $;
|
|
|
2294
2296
|
}
|
|
2295
2297
|
attr() {
|
|
2296
2298
|
return {
|
|
2297
|
-
mol_theme: this.theme(),
|
|
2299
|
+
mol_theme: this.theme() || undefined,
|
|
2298
2300
|
};
|
|
2299
2301
|
}
|
|
2300
2302
|
style_size() {
|
|
@@ -2463,11 +2465,7 @@ var $;
|
|
|
2463
2465
|
(function ($) {
|
|
2464
2466
|
class $mol_plugin extends $mol_view {
|
|
2465
2467
|
dom_node_external(next) {
|
|
2466
|
-
|
|
2467
|
-
return next ?? host.dom_node();
|
|
2468
|
-
}
|
|
2469
|
-
attr_static() {
|
|
2470
|
-
return {};
|
|
2468
|
+
return next ?? $mol_owning_get(this).host.dom_node();
|
|
2471
2469
|
}
|
|
2472
2470
|
render() {
|
|
2473
2471
|
this.dom_node_actual();
|