Skip to content

Commit

Permalink
rename:
Browse files Browse the repository at this point in the history
createPreCalculators -> createRenderCalculators
createCalculators -> createVisibleCalculators
(#2023)
  • Loading branch information
warpech committed Jan 7, 2015
1 parent 7855613 commit 981bca8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/3rdparty/walkontable/src/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ WalkontableTable.prototype.refreshHiderDimensions = function () {
WalkontableTable.prototype.draw = function (fastDraw) {
if (!this.isWorkingOnClone()) {
this.holderOffset = Handsontable.Dom.offset(this.holder);
fastDraw = this.instance.wtViewport.createPreCalculators(fastDraw);
fastDraw = this.instance.wtViewport.createRenderCalculators(fastDraw);
}

if (!fastDraw) {
Expand Down Expand Up @@ -149,7 +149,7 @@ WalkontableTable.prototype.draw = function (fastDraw) {
}
else {
if (!this.isWorkingOnClone()) {
this.instance.wtViewport.createCalculators(); //in case we only scrolled without redraw, update visible rows information in oldRowsCalculator
this.instance.wtViewport.createVisibleCalculators(); //in case we only scrolled without redraw, update visible rows information in oldRowsCalculator
}
this.instance.wtScrollbars && this.instance.wtScrollbars.refresh(true);
}
Expand Down
2 changes: 1 addition & 1 deletion src/3rdparty/walkontable/src/tableRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ WalkontableTableRenderer.prototype.render = function () {
if (!this.wtTable.isWorkingOnClone()) {
this.markOversizedRows();

this.instance.wtViewport.createCalculators();
this.instance.wtViewport.createVisibleCalculators();

this.instance.wtScrollbars.applyToDOM();

Expand Down
4 changes: 2 additions & 2 deletions src/3rdparty/walkontable/src/viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ WalkontableViewport.prototype.createColumnsCalculator = function (visible) {
* Creates rowsRenderCalculator and columnsRenderCalculator (before draw, to determine what rows and cols should be rendered)
* @param fastDraw {Boolean} If TRUE, will try to avoid full redraw and only update the border positions. If FALSE or UNDEFINED, will perform a full redraw
*/
WalkontableViewport.prototype.createPreCalculators = function (fastDraw) {
WalkontableViewport.prototype.createRenderCalculators = function (fastDraw) {
if (fastDraw) {
var proposedRowsVisibleCalculator = this.createRowsCalculator(true);
var proposedColumnsVisibleCalculator = this.createColumnsCalculator(true);
Expand All @@ -241,7 +241,7 @@ WalkontableViewport.prototype.createPreCalculators = function (fastDraw) {
/**
* Creates rowsVisibleCalculator and columnsVisibleCalculator (after draw, to determine what are the actually visible rows and columns)
*/
WalkontableViewport.prototype.createCalculators = function () {
WalkontableViewport.prototype.createVisibleCalculators = function () {
this.rowsVisibleCalculator = this.createRowsCalculator(true);
this.columnsVisibleCalculator = this.createColumnsCalculator(true);
};
Expand Down

0 comments on commit 981bca8

Please sign in to comment.