0

I've just found a script for progress bars for Photoshop UI the function is set up as a variable in the following form, which I've not seen before.

var ProgressBar = function(/*str*/title)
  • Firstly why are the two parameters not separated by a comma? as in:

    var ProgressBar = function(str, title)
    
  • Secondly what is the significance of /* */ around the string parameter?

Can anyone shed some light on this?

Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
  • I think this is because of wrong type of comment practice follow. It might indicate that title is required which will be type of string. – Ashok Rathod Oct 09 '14 at 08:29

1 Answers1

1

I think this is because of wrong type of comment practice follow. It indicates that title is required which will be type of string. As you can see in provided link

 var pBar = new ProgressBar("Script Title");

provided input is string type.

Ashok Rathod
  • 840
  • 9
  • 24