fix double input bug

This commit is contained in:
2024-09-06 18:51:09 -05:00
parent af79dba48a
commit 67fe729d8c
2 changed files with 18 additions and 21 deletions

View File

@@ -29,9 +29,6 @@ globalThis.class_use = function(script, config, base, callback)
if (callback) callback(padawan);
if (typeof config === 'object')
Object.merge(padawan,config);
var script = Resources.replstrs(file);
script = `(function() {
var self = this;
@@ -42,6 +39,9 @@ globalThis.class_use = function(script, config, base, callback)
var fn = os.eval(file,script);
fn.call(padawan);
if (typeof config === 'object')
Object.merge(padawan,config);
return padawan;
}