tasks/lib/photobox.js
function( grunt, options, callback ) {
  this.callback          = callback;
  this.diffCount         = 0;
  this.grunt             = grunt;
  this.options           = options;
  this.options.indexPath = this.getIndexPath();
  this.pictureCount      = 0;

  if ( typeof options.template === 'string' ) {
    this.template = options.template;
  } else if ( typeof options.template === 'object' ) {
    this.template = options.template.name;
  }

  this.movePictures();
  this.pictures = this.getPreparedPictures();
}
function( grunt, options, callback ) {
  this.callback          = callback;
  this.diffCount         = 0;
  this.grunt             = grunt;
  this.options           = options;
  this.options.indexPath = this.getIndexPath();
  this.pictureCount      = 0;

  if ( typeof options.template === 'string' ) {
    this.template = options.template;
  } else if ( typeof options.template === 'object' ) {
    this.template = options.template.name;
  }

  this.movePictures();
  this.pictures = this.getPreparedPictures();
}
function ( grunt , options , callback ) { this . callback = callback ; this . diffCount = 0 ; this . grunt = grunt ; this . options = options ; this . options . indexPath = this . getIndexPath ( ) ; this . pictureCount = 0 ; if ( typeof options . template === 'string' ) { this . template = options . template ; } else if ( typeof options . template === 'object' ) { this . template = options . template . name ; } this . movePictures ( ) ; this . pictures = this . getPreparedPictures ( ) ; }
Constructor for PhotoBox

@param  {Object}   grunt    grunt
@param  {Object}   options  plugin options
@param  {Function} callback callback

@tested
Constructor for PhotoBox