public/js/handsontable/jquery.handsontable.full.js
function (td, scrollToCell) {
      var coords = self.view.getCellCoords(td);
      selection.end(coords);
      if (!priv.settings.multiSelect) {
        priv.selStart = coords;
      }
      self.rootElement.triggerHandler("selection.handsontable", [priv.selStart.row, priv.selStart.col, priv.selEnd.row, priv.selEnd.col]);
      self.rootElement.triggerHandler("selectionbyprop.handsontable", [priv.selStart.row, datamap.colToProp(priv.selStart.col), priv.selEnd.row, datamap.colToProp(priv.selEnd.col)]);
      selection.refreshBorders();
      if (scrollToCell !== false) {
        self.view.scrollViewport(td);
      }
    }
function (td, scrollToCell) {
      var coords = self.view.getCellCoords(td);
      selection.end(coords);
      if (!priv.settings.multiSelect) {
        priv.selStart = coords;
      }
      self.rootElement.triggerHandler("selection.handsontable", [priv.selStart.row, priv.selStart.col, priv.selEnd.row, priv.selEnd.col]);
      self.rootElement.triggerHandler("selectionbyprop.handsontable", [priv.selStart.row, datamap.colToProp(priv.selStart.col), priv.selEnd.row, datamap.colToProp(priv.selEnd.col)]);
      selection.refreshBorders();
      if (scrollToCell !== false) {
        self.view.scrollViewport(td);
      }
    }
function ( td , scrollToCell ) { var coords = self . view . getCellCoords ( td ) ; selection . end ( coords ) ; if ( ! priv . settings . multiSelect ) { priv . selStart = coords ; } self . rootElement . triggerHandler ( "selection.handsontable" , [ priv . selStart . row , priv . selStart . col , priv . selEnd . row , priv . selEnd . col ] ) ; self . rootElement . triggerHandler ( "selectionbyprop.handsontable" , [ priv . selStart . row , datamap . colToProp ( priv . selStart . col ) , priv . selEnd . row , datamap . colToProp ( priv . selEnd . col ) ] ) ; selection . refreshBorders ( ) ; if ( scrollToCell !== false ) { self . view . scrollViewport ( td ) ; } }
Ends selection range on given td object
@param {Element} td
@param {Boolean} [scrollToCell=true] If true, viewport will be scrolled to range end
Ends selection range on given td object