add scope to setupAll of js util registry

This commit is contained in:
Felix Hamann 2019-04-10 23:32:28 +02:00
parent 8cbded79db
commit 26658723b9
3 changed files with 4 additions and 4 deletions

View File

@ -46,14 +46,14 @@
}
}
function setupAllUtils() {
function setupAllUtils(scope) {
if (DEBUG_MODE > 1) {
console.info('registered js utilities:');
console.table(registeredUtils);
}
registeredUtils.forEach(function(util) {
setupUtil(util);
setupUtil(util, scope);
});
}

View File

@ -351,7 +351,7 @@
element.innerHTML = newWrapperContents.innerHTML;
if (UtilRegistry) {
UtilRegistry.setupAll();
UtilRegistry.setupAll(element);
}
}

View File

@ -169,7 +169,7 @@
element.insertBefore(modalContent, null);
// setup any newly arrived utils
UtilRegistry.setupAll();
UtilRegistry.setupAll(element);
}
function withPrefixedInputIDs(modalContent) {