Skip to content

Commit

Permalink
Improved code.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Oct 31, 2024
1 parent 437ea8e commit ebe996c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Component.prototype.output = function(instance, response) {
console.log('OUTPUT', this.name + ' | ' + response.output + ':', response.data);
};

Component.prototype.create = function(opt) {
Component.prototype.create = function(opt, status) {

let t = this;
let instance = new Instance();
Expand All @@ -128,7 +128,7 @@ Component.prototype.create = function(opt) {
instance.config[key] = opt[key];
}

t.make.call(instance, instance, instance.config);
t.make.call(instance, instance, instance.config, status);
t.instances.push(instance);
return instance;
};
Expand Down

0 comments on commit ebe996c

Please sign in to comment.