removed dbg warnings from tab completion
This commit is contained in:
parent
5db00e9019
commit
23782f9fac
|
@ -1507,10 +1507,8 @@ replpanel.inputs.tab = function() {
|
||||||
|
|
||||||
if (!this.value.includes('.')) keys.push("this");
|
if (!this.value.includes('.')) keys.push("this");
|
||||||
|
|
||||||
if (eval(`typeof ${keyobj.tofirst('.')}`) === 'object' && eval(`typeof ${keyobj.replace('.', '?.')}`) === 'object') {
|
if (eval(`typeof ${keyobj.tofirst('.')}`) === 'object' && eval(`typeof ${keyobj.replace('.', '?.')}`) === 'object')
|
||||||
Log.warn("set obj to " + keyobj);
|
|
||||||
obj = eval(keyobj);
|
obj = eval(keyobj);
|
||||||
}
|
|
||||||
else if (this.value.includes('.')){
|
else if (this.value.includes('.')){
|
||||||
Log.say(`${this.value} is not an object.`);
|
Log.say(`${this.value} is not an object.`);
|
||||||
return;
|
return;
|
||||||
|
@ -1893,8 +1891,7 @@ var assetexplorer = Object.copy(openlevelpanel, {
|
||||||
function tab_complete(val, list) {
|
function tab_complete(val, list) {
|
||||||
if (!val) return val;
|
if (!val) return val;
|
||||||
list.dofilter(function(x) { return x.startsWith(val); });
|
list.dofilter(function(x) { return x.startsWith(val); });
|
||||||
Log.warn(list);
|
|
||||||
Log.warn(val);
|
|
||||||
if (list.length === 1) {
|
if (list.length === 1) {
|
||||||
return list[0];
|
return list[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue