Improve layout of addInput parameters.

This commit is contained in:
j433866 2019-07-03 16:15:14 +01:00
parent 367d30e421
commit 6964bbc232
1 changed files with 10 additions and 1 deletions

View File

@ -793,7 +793,16 @@ self.loadFiles = function(filesData) {
* @param {string} fileData.type - The MIME type of the input being added
* @param {number} inputNum - Defaults to auto-incrementing self.currentInputNum
*/
self.addInput = function(changeTab=false, type, fileData={name: "unknown", size: "unknown", type: "unknown"}, inputNum = self.currentInputNum++) {
self.addInput = function(
changeTab = false,
type,
fileData = {
name: "unknown",
size: "unknown",
type: "unknown"
},
inputNum = self.currentInputNum++
) {
self.numInputs++;
const newInputObj = {
inputNum: inputNum