fix WebComponentsReady

This commit is contained in:
Clément 2018-09-29 00:48:46 +02:00
parent 1c7e7f3e37
commit b74f4f9871
3 changed files with 51 additions and 57 deletions

View File

@ -1,6 +1,5 @@
script. script.
document.addEventListener('WebComponentsReady', function(event) { document.addEventListener('WebComponentsReady', function(event) {
document.addEventListener("HTMLImportsLoaded", function(event) {
class HDAppMember extends SIBWidget { class HDAppMember extends SIBWidget {
get template() { get template() {
return ` return `
@ -19,7 +18,6 @@ script.
} }
customElements.define("hdapp-member", HDAppMember); customElements.define("hdapp-member", HDAppMember);
}); });
});
#channel-profile(style='display: none') #channel-profile(style='display: none')
sib-display( sib-display(

View File

@ -1,6 +1,5 @@
script. script.
document.addEventListener('WebComponentsReady', function(event) { document.addEventListener('WebComponentsReady', function(event) {
document.addEventListener('HTMLImportsLoaded', function(event) {
class HDAppAuthor extends SIBDisplayLookupList { class HDAppAuthor extends SIBDisplayLookupList {
get parentElement() { get parentElement() {
return 'div'; return 'div';
@ -26,7 +25,6 @@ script.
} }
customElements.define('hdapp-author', HDAppAuthor); customElements.define('hdapp-author', HDAppAuthor);
}); });
});
div div
h1 Job offers h1 Job offers

View File

@ -1,6 +1,5 @@
script. script.
document.addEventListener('WebComponentsReady', function(event) { document.addEventListener('WebComponentsReady', function(event) {
document.addEventListener("HTMLImportsLoaded", function(event) {
class HDAppClient extends SIBWidget { class HDAppClient extends SIBWidget {
get template() { get template() {
@ -16,7 +15,6 @@ script.
} }
customElements.define("hdapp-client", HDAppClient); customElements.define("hdapp-client", HDAppClient);
}); });
});
#projects(style='display: none') #projects(style='display: none')
h1 Projects h1 Projects