From 7aff38f6b9b21c44525aebdedf6f905dfdd00f3d Mon Sep 17 00:00:00 2001 From: Zanz2 Date: Tue, 3 Jul 2018 15:35:37 +0200 Subject: [PATCH] made comments clear to what issue the changes are related to --- vendor/assets/javascripts/handsontable.formula.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vendor/assets/javascripts/handsontable.formula.js b/vendor/assets/javascripts/handsontable.formula.js index f2a60b8b4..3bee3383a 100644 --- a/vendor/assets/javascripts/handsontable.formula.js +++ b/vendor/assets/javascripts/handsontable.formula.js @@ -1,7 +1,7 @@ (function(Handsontable) { 'use strict'; - // [MODIFICATION] + // [MODIFICATION] (sci 2588) var formulasResults = {}; // _!_MODIFICATION function HandsontableFormula() { @@ -16,7 +16,7 @@ return false; }; - // [MODIFICATION] + // [MODIFICATION] (sci 2588) var beforeRender = function (isForced) { formulasResults = {}; var data = this.getData(); @@ -68,7 +68,7 @@ // check if typed formula or cell value should be recalculated if ((value && value[0] === '=') || needUpdate) { - // [MODIFICATION] + // [MODIFICATION] (sci 2588) if (formulasResults[cellId] === undefined) { // _!_MODIFICATION @@ -114,7 +114,7 @@ // update cell value in hot value = error || result; } - // [MODIFICATION] + // [MODIFICATION] (sci 2588) } else { var newValue = formulasResults[cellId]; @@ -412,7 +412,7 @@ var custom = { // - // [MODIFICATION] + // [MODIFICATION] (sci 2588) // Previously: "cellValue: instance.getDataAtCell" // cellValue: function(row, col){ @@ -450,7 +450,7 @@ Handsontable.TextCell.renderer = formulaRenderer; Handsontable.NumericCell.renderer = formulaRenderer; - // [MODIFICATION] + // [MODIFICATION] (sci 2588) // This hook is new instance.addHook('beforeRender', beforeRender); // _!_MODIFICATION @@ -461,7 +461,7 @@ instance.addHook('afterCreateCol', afterCreateCol); } else { - // [MODIFICATION] + // [MODIFICATION] (sci 2588) // This hook is new instance.removeHook('beforeRender', beforeRender); // _!_MODIFICATION