mol_jsx_lib 0.0.59 → 0.0.60
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.esm.js +1 -1
- package/node.esm.js.map +1 -1
- package/node.js +1 -1
- package/node.js.map +1 -1
- package/node.test.js +5 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.esm.js +1 -1
- package/web.esm.js.map +1 -1
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/web.test.js +4 -2
- package/web.test.js.map +1 -1
package/node.esm.js
CHANGED
|
@@ -828,7 +828,7 @@ var $;
|
|
|
828
828
|
function $mol_jsx(Elem, props, ...childNodes) {
|
|
829
829
|
const id = props && props.id || '';
|
|
830
830
|
const guid = id ? $.$mol_jsx_prefix ? $.$mol_jsx_prefix + '/' + id : id : $.$mol_jsx_prefix;
|
|
831
|
-
const crumbs_self = id ? $.$mol_jsx_crumbs.replace(/(
|
|
831
|
+
const crumbs_self = id ? $.$mol_jsx_crumbs.replace(/(\S+)/g, `$1_${id}`) : $.$mol_jsx_crumbs;
|
|
832
832
|
if (Elem && $.$mol_jsx_booked) {
|
|
833
833
|
if ($.$mol_jsx_booked.has(id)) {
|
|
834
834
|
$mol_fail(new Error(`JSX already has tag with id ${JSON.stringify(guid)}`));
|