lib/simpleTrigger.js
function(trigger, job){
  this.nextTime = (!!trigger.start)?trigger.start:Date.now();

  //The rec
  this.period = (!!trigger.period)?trigger.period:-1;

  //The running count of the job, -1 means no limit
  this.count = (!!trigger.count)?trigger.count:-1;

  this.job = job;
}
function(trigger, job){
  this.nextTime = (!!trigger.start)?trigger.start:Date.now();

  //The rec
  this.period = (!!trigger.period)?trigger.period:-1;

  //The running count of the job, -1 means no limit
  this.count = (!!trigger.count)?trigger.count:-1;

  this.job = job;
}
function ( trigger , job ) { this . nextTime = ( ! ! trigger . start ) ? trigger . start : Date . now ( ) ; //The rec this . period = ( ! ! trigger . period ) ? trigger . period : - 1 ; //The running count of the job, -1 means no limit this . count = ( ! ! trigger . count ) ? trigger . count : - 1 ; this . job = job ; }
The constructor of simple trigger
The constructor of simple trigger