add scope to setupAll of js util registry
This commit is contained in:
parent
8cbded79db
commit
26658723b9
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -351,7 +351,7 @@
|
||||
element.innerHTML = newWrapperContents.innerHTML;
|
||||
|
||||
if (UtilRegistry) {
|
||||
UtilRegistry.setupAll();
|
||||
UtilRegistry.setupAll(element);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -169,7 +169,7 @@
|
||||
element.insertBefore(modalContent, null);
|
||||
|
||||
// setup any newly arrived utils
|
||||
UtilRegistry.setupAll();
|
||||
UtilRegistry.setupAll(element);
|
||||
}
|
||||
|
||||
function withPrefixedInputIDs(modalContent) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user