rasti 4.0.0-alpha.10 → 4.0.0-alpha.11
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/README.md +2 -2
- package/dist/rasti.js +4 -1
- package/dist/rasti.js.map +1 -1
- package/dist/rasti.min.js +1 -1
- package/dist/rasti.min.js.map +1 -1
- package/es/Component.js +3 -1
- package/es/Component.js.map +1 -1
- package/es/utils/dev.js +1 -0
- package/es/utils/dev.js.map +1 -1
- package/lib/Component.cjs +3 -1
- package/lib/Component.cjs.map +1 -1
- package/lib/utils/dev.cjs +1 -0
- package/lib/utils/dev.cjs.map +1 -1
- package/package.json +1 -1
- package/src/Component.js +3 -1
- package/src/utils/dev.js +1 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<picture>
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/8tentaculos/rasti@v4.0.0-alpha.
|
|
4
|
-
<img alt="Rasti.js" src="https://cdn.jsdelivr.net/gh/8tentaculos/rasti@v4.0.0-alpha.
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/8tentaculos/rasti@v4.0.0-alpha.11/docs/logo-dark.svg">
|
|
4
|
+
<img alt="Rasti.js" src="https://cdn.jsdelivr.net/gh/8tentaculos/rasti@v4.0.0-alpha.11/docs/logo.svg" height="120">
|
|
5
5
|
</picture>
|
|
6
6
|
</p>
|
|
7
7
|
|
package/dist/rasti.js
CHANGED
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
* - UMD dev: replaced with true
|
|
79
79
|
* - UMD prod: replaced with false
|
|
80
80
|
* @type {boolean}
|
|
81
|
+
* @module
|
|
81
82
|
* @private
|
|
82
83
|
*/
|
|
83
84
|
const __DEV__ = true;
|
|
@@ -1936,7 +1937,9 @@
|
|
|
1936
1937
|
* @return {boolean} True if the element contains a component.
|
|
1937
1938
|
* @private
|
|
1938
1939
|
*/
|
|
1939
|
-
const containsElement = (el) => !!(
|
|
1940
|
+
const containsElement = (el) => !!(
|
|
1941
|
+
el && ((el.dataset && el.dataset[Component.DATASET_ELEMENT]) || (el.querySelector && el.querySelector(`[${Component.ATTRIBUTE_ELEMENT}]`)))
|
|
1942
|
+
);
|
|
1940
1943
|
|
|
1941
1944
|
/**
|
|
1942
1945
|
* Generate string with placeholders for interpolated expressions.
|