[SSE] Refactoring

This commit is contained in:
Julia Radzhabova 2020-05-15 13:07:47 +03:00
parent b377c5b10b
commit ba775c9929

View file

@ -299,10 +299,14 @@ define([
},
getArgumentsValue: function() {
var res = [];
this.args.forEach(function(item){
res.push(item.argInput.getValue());
});
var res = [],
len = this.args.length,
empty = true;
for (var i=len-1; i>=0; i--) {
var val = this.args[i].argInput.getValue();
empty && (empty = !val);
(!empty) && (res[i] = val);
}
return res;
},