@justinribeiro/lite-youtube
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -17,2 +17,7 @@ /** | ||
class LiteYTEmbed extends HTMLElement { | ||
constructor() { | ||
super(); | ||
this.setupDom(); | ||
} | ||
static get observedAttributes() { | ||
@@ -31,4 +36,2 @@ return ['videoid']; | ||
this.addEventListener('click', e => this.addIframe()); | ||
this.setupDom(); | ||
this.setupComponent(); | ||
} | ||
@@ -161,4 +164,8 @@ | ||
this.setupComponent(); | ||
this.__domRefFrame.classList.remove('lyt-activated'); | ||
this.shadowRoot.querySelector('iframe').remove(); | ||
// if we have a previous iframe, remove it and the activated class | ||
if (this.__domRefFrame.classList.contains('lyt-activated')) { | ||
this.__domRefFrame.classList.remove('lyt-activated'); | ||
this.shadowRoot.querySelector('iframe').remove(); | ||
} | ||
} | ||
@@ -165,0 +172,0 @@ break; |
@@ -10,3 +10,3 @@ { | ||
"license": "MIT", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "lite-youtube.js", | ||
@@ -13,0 +13,0 @@ "module": "lite-youtube.js", |
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
13505
257