src/components/clocker/clocker.js
function (finalDate, option) {
  option = option || {}
  this.PRECISION = option.precision || 100 // 0.1 seconds, used to update the DOM
  this.interval = null
  this.offset = {}
  // Register this instance
  this.instanceNumber = instances.length
  instances.push(this)
  // Set the final date and start
  this.setFinalDate(finalDate)
}
function (finalDate, option) {
  option = option || {}
  this.PRECISION = option.precision || 100 // 0.1 seconds, used to update the DOM
  this.interval = null
  this.offset = {}
  // Register this instance
  this.instanceNumber = instances.length
  instances.push(this)
  // Set the final date and start
  this.setFinalDate(finalDate)
}
function ( finalDate , option ) { option = option || { } this . PRECISION = option . precision || 100 // 0.1 seconds, used to update the DOM this . interval = null this . offset = { } // Register this instance this . instanceNumber = instances . length instances . push ( this ) // Set the final date and start this . setFinalDate ( finalDate ) }
The Final Countdown
The Final Countdown