domql 1.6.25 → 1.6.26

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "domql",
3
3
  "description": "DOM rendering Javascript framework at early stage.",
4
- "version": "1.6.25",
4
+ "version": "1.6.26",
5
5
  "repository": "https://github.com/domql/domql",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org"
@@ -69,13 +69,13 @@ export const isVariant = (param) => {
69
69
  return (firstCharKey === '.')
70
70
  }
71
71
 
72
- export const hasVariant = (element) => {
72
+ export const hasVariantProp = (element) => {
73
73
  const { props } = element
74
74
  if (isObject(props) || isString(props.variant)) return true
75
75
  }
76
76
 
77
77
  export const applyVariant = (element) => {
78
- if (!hasVariant(element)) return element
78
+ if (!hasVariantProp(element)) return element
79
79
  const { variant } = element.props
80
80
  const extendVariant = element[`.${variant}`] || element[`$${variant}`]
81
81
  if (extendVariant) {