ProManager WIP.
This commit is contained in:
@@ -16,6 +16,7 @@ export default function InstanceRenderManager({
|
||||
imex,
|
||||
debug,
|
||||
instance,
|
||||
args,
|
||||
}) {
|
||||
let propToReturn = null;
|
||||
|
||||
@@ -38,17 +39,17 @@ export default function InstanceRenderManager({
|
||||
break;
|
||||
}
|
||||
|
||||
if (executeFunction && typeof propToReturn === 'function') propToReturn();
|
||||
|
||||
//Checking to see if we need to default to another one.
|
||||
if (propToReturn === 'imex') {
|
||||
propToReturn = imex;
|
||||
}
|
||||
if (debug) {
|
||||
console.log('InstanceRenderManager Debugger');
|
||||
console.log('=========================');
|
||||
console.log({ executeFunction, rome, promanager, imex, debug, propToReturn });
|
||||
console.log('=========================');
|
||||
}
|
||||
|
||||
//Checking to see if we need to default to another one.
|
||||
if (propToReturn === 'imex') {
|
||||
propToReturn = imex;
|
||||
}
|
||||
if (executeFunction && typeof propToReturn === 'function') return propToReturn(...args);
|
||||
return propToReturn === undefined ? null : propToReturn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user