major: core upgrade

This commit is contained in:
Jean-Baptiste Pasquier
2021-02-08 14:01:36 +01:00
parent 0057aa8994
commit db3243db69
9 changed files with 30 additions and 28 deletions

View File

@ -197,11 +197,10 @@ document.addEventListener("DOMContentLoaded", () => {
subtree: true,
childList: true
}));
// 0.15 needed https://git.startinblox.com/framework/sib-core/issues/732
// document.addEventListener('widgetRendered', event => {
// jsI18n.processNode(event.target);
// // Then wait one arbitrary second to re-render the whole document in case a widget re-rendered
// clearTimeout(timer);
// timer = setTimeout(() => jsI18n.processNode(document.querySelector('body')), 500);
// });
document.addEventListener('widgetRendered', event => {
jsI18n.processNode(event.target);
// Then wait one arbitrary second to re-render the whole document in case a widget re-rendered
clearTimeout(timer);
timer = setTimeout(() => jsI18n.processNode(document.querySelector('body')), 500);
});
});