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) {
|
if (DEBUG_MODE > 1) {
|
||||||
console.info('registered js utilities:');
|
console.info('registered js utilities:');
|
||||||
console.table(registeredUtils);
|
console.table(registeredUtils);
|
||||||
}
|
}
|
||||||
|
|
||||||
registeredUtils.forEach(function(util) {
|
registeredUtils.forEach(function(util) {
|
||||||
setupUtil(util);
|
setupUtil(util, scope);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -351,7 +351,7 @@
|
|||||||
element.innerHTML = newWrapperContents.innerHTML;
|
element.innerHTML = newWrapperContents.innerHTML;
|
||||||
|
|
||||||
if (UtilRegistry) {
|
if (UtilRegistry) {
|
||||||
UtilRegistry.setupAll();
|
UtilRegistry.setupAll(element);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -169,7 +169,7 @@
|
|||||||
element.insertBefore(modalContent, null);
|
element.insertBefore(modalContent, null);
|
||||||
|
|
||||||
// setup any newly arrived utils
|
// setup any newly arrived utils
|
||||||
UtilRegistry.setupAll();
|
UtilRegistry.setupAll(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
function withPrefixedInputIDs(modalContent) {
|
function withPrefixedInputIDs(modalContent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user