77 * @license GPLv2 or later
88 */
99
10-
10+ /* ============================================================ */
1111/*
1212 * This code uses DOM methods instead of (nonstandard) innerHTML
1313 * to modify page.
2626 */
2727
2828
29- /* ============================================================ */
29+ /* ............................................................ */
3030/* utility/helper functions (and variables) */
3131
3232var xhr ; // XMLHttpRequest object
@@ -132,7 +132,7 @@ function writeTimeInterval() {
132132}
133133
134134/**
135- * show an error message alert to user within page (in prohress info area)
135+ * show an error message alert to user within page (in progress info area)
136136 * @param {String } str: plain text error message (no HTML)
137137 *
138138 * @globals div_progress_info
@@ -182,7 +182,7 @@ function getColorNo(tr) {
182182
183183var colorsFreq = [ 0 , 0 , 0 ] ;
184184/**
185- * return one of given possible colors (curently least used one)
185+ * return one of given possible colors (currently least used one)
186186 * example: chooseColorNoFrom(2, 3) returns 2 or 3
187187 *
188188 * @param {Number[] } arguments: one or more numbers
@@ -203,8 +203,8 @@ function chooseColorNoFrom() {
203203}
204204
205205/**
206- * given two neigbour <tr> elements, find color which would be different
207- * from color of both of neighbours ; used to 3-color blame table
206+ * given two neighbor <tr> elements, find color which would be different
207+ * from color of both of neighbors ; used to 3-color blame table
208208 *
209209 * @param {HTMLElement } tr_prev
210210 * @param {HTMLElement } tr_next
@@ -216,14 +216,14 @@ function findColorNo(tr_prev, tr_next) {
216216 var color_next = getColorNo ( tr_next ) ;
217217
218218
219- // neither of neighbours has color set
219+ // neither of neighbors has color set
220220 // THEN we can use any of 3 possible colors
221221 if ( ! color_prev && ! color_next ) {
222222 return chooseColorNoFrom ( 1 , 2 , 3 ) ;
223223 }
224224
225- // either both neighbours have the same color,
226- // or only one of neighbours have color set
225+ // either both neighbors have the same color,
226+ // or only one of neighbors have color set
227227 // THEN we can use any color except given
228228 var color ;
229229 if ( color_prev === color_next ) {
@@ -237,7 +237,7 @@ function findColorNo(tr_prev, tr_next) {
237237 return chooseColorNoFrom ( ( color % 3 ) + 1 , ( ( color + 1 ) % 3 ) + 1 ) ;
238238 }
239239
240- // neighbours have different colors
240+ // neighbors have different colors
241241 // THEN there is only one color left
242242 return ( 3 - ( ( color_prev + color_next ) % 3 ) ) ;
243243}
@@ -258,7 +258,7 @@ function isStartOfGroup(tr) {
258258
259259/**
260260 * change colors to use zebra coloring (2 colors) instead of 3 colors
261- * concatenate neighbour commit groups belonging to the same commit
261+ * concatenate neighbor commit groups belonging to the same commit
262262 *
263263 * @globals colorRe
264264 */
0 commit comments