This commit is contained in:
parent
f72fe09b22
commit
284bc7f25a
|
@ -708,12 +708,14 @@ export class LibInit extends Uninstantable {
|
|||
}
|
||||
else if (typeof func == 'object') {
|
||||
for (var i in func) {
|
||||
if(typeof func[i] == 'function'){
|
||||
let checkObject = {};
|
||||
checkObject[i] = func[i];
|
||||
return eval(`(function(){return ${get.stringify(checkObject)};})()`)[i];
|
||||
}else{
|
||||
func[i] = lib.init.eval(func[i]);
|
||||
if (Object.prototype.hasOwnProperty.call(func, i)) {
|
||||
if(typeof func[i] == 'function'){
|
||||
let checkObject = {};
|
||||
checkObject[i] = func[i];
|
||||
return eval(`(function(){return ${get.stringify(checkObject)};})()`)[i];
|
||||
}else{
|
||||
func[i] = lib.init.eval(func[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue