@vaadin/vaadin-themable-mixin
Advanced tools
Comparing version 23.0.6 to 23.0.7
{ | ||
"name": "@vaadin/vaadin-themable-mixin", | ||
"version": "23.0.6", | ||
"version": "23.0.7", | ||
"publishConfig": { | ||
@@ -43,3 +43,3 @@ "access": "public" | ||
}, | ||
"gitHead": "82ca8522e24a63343fb28bcb4c686e55d25c8858" | ||
"gitHead": "005c2d85db8f50cd3b239dd89ac467add6a71049" | ||
} |
@@ -182,3 +182,11 @@ /** | ||
function hasThemes(tagName) { | ||
const elementClass = customElements.get(tagName); | ||
return classHasThemes(customElements.get(tagName)); | ||
} | ||
/** | ||
* Check if the custom element type has themes applied. | ||
* @param {Function} elementClass | ||
* @returns {boolean} | ||
*/ | ||
function classHasThemes(elementClass) { | ||
return elementClass && Object.prototype.hasOwnProperty.call(elementClass, '__themes'); | ||
@@ -201,3 +209,3 @@ } | ||
const template = this.prototype._template; | ||
if (!template || hasThemes(this.is)) { | ||
if (!template || classHasThemes(this)) { | ||
return; | ||
@@ -204,0 +212,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23994
337