@html-element-wrappers/audio
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -1,2 +0,2 @@ | ||
import { HTMLMediaElement } from '../../media'; | ||
import { HTMLMediaElement } from '../../media/lib/media'; | ||
import { html, render as litRender} from 'lit-html/lib/shady-render'; | ||
@@ -10,5 +10,5 @@ export { html } from 'lit-html'; | ||
this.attachShadow({mode: 'open', delegatesFocus: this.hasAttribute('delegatesfocus')}); | ||
this.attachShadow({mode: 'open', delegatesFocus: this.__delegatesFocus}); | ||
this.render(); | ||
if(this.hasAttribute('delegatesfocus')) this.__initFocusDelegation(); | ||
if(!this.__delegatesFocus) this.addEventListener('focus', () => this.$element.focus()); | ||
} | ||
@@ -84,9 +84,3 @@ | ||
} | ||
__initFocusDelegation() { | ||
if(this.shadowRoot.delegatesFocus) return; | ||
this.addEventListener('focus', () => this.$element.focus()); | ||
this.addEventListener('click', () => this.$element.focus()); | ||
} | ||
} |
{ | ||
"name": "@html-element-wrappers/audio", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "HTMLAudioElement", | ||
@@ -29,3 +29,3 @@ "author": "Wouter Vroege <wouter@woutervroege.nl>", | ||
}, | ||
"gitHead": "fb19e921fef4b9bad5ca4ba2e1559b1cb9624836", | ||
"gitHead": "b54e57b87681c12814ef51e78f24dc483514cc35", | ||
"dependencies": { | ||
@@ -32,0 +32,0 @@ "html-element-property-mixins": "^0.10.11", |
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
4716
74