function prepareRow(i) {
    var rowModel = self.collection.at(i);
    var $row = self.drawRow(rowModel)
                  .addClass('item-row')
                  .attr('data-index', i)
                  .attr('data-id', rowModel.get(idProperty));
    if (i === 0) {
      $row.addClass('item-row-first');
    }
    if (i === self.collection.size() - 1) {
      $row.addClass('item-row-last');
    }
    return $row;
  }
/** draws the ith row and attaches index and css classes */
draws the ith row and attaches index and css classes
draws the ith row and attaches index and css classes
function prepareRow(i) {
    var rowModel = self.collection.at(i);
    var $row = self.drawRow(rowModel)
                  .addClass('item-row')
                  .attr('data-index', i)
                  .attr('data-id', rowModel.get(idProperty));
    if (i === 0) {
      $row.addClass('item-row-first');
    }
    if (i === self.collection.size() - 1) {
      $row.addClass('item-row-last');
    }
    return $row;
  }
function prepareRow ( i ) { var rowModel = self . collection . at ( i ) ; var $row = self . drawRow ( rowModel ) . addClass ( 'item-row' ) . attr ( 'data-index' , i ) . attr ( 'data-id' , rowModel . get ( idProperty ) ) ; if ( i === 0 ) { $row . addClass ( 'item-row-first' ) ; } if ( i === self . collection . size ( ) - 1 ) { $row . addClass ( 'item-row-last' ) ; } return $row ; }
draws the ith row and attaches index and css classes
draws the ith row and attaches index and css classes