1
0
mirror of synced 2024-11-16 19:17:13 +01:00

Improve layout of addInput parameters.

This commit is contained in:
j433866 2019-07-03 16:15:14 +01:00
parent 367d30e421
commit 6964bbc232

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