Commits

Arvid Tomayko-Peters  committed d060320

atp.outputQueue: bugfix: queue now starts automatically by default if no 2nd argument

  • Participants
  • Parent commits 74e289f

Comments (0)

Files changed (1)

File js/atp.outputQueue.js

    interval = jsarguments[1]; //arg 1 = initial interval
 }
 
-if(jsarguments.length>2)
+if(jsarguments.length>2) //if 2nd argument
 {
-   if (jsarguments[2]) { // start up automatically?
+   if (jsarguments[2]) { //start up automatically if not 0
 		tsk.interval = interval; //set it up
 		tsk.repeat(); //start it
 	}
+} else { //no 2nd argument - start up automatically
+	tsk.interval = interval; //set it up
+	tsk.repeat(); //start it
 }
 
 function anything() {