7
7
* @license GPLv2 or later
8
8
*/
9
9
10
-
10
+ /* ============================================================ */
11
11
/*
12
12
* This code uses DOM methods instead of (nonstandard) innerHTML
13
13
* to modify page.
26
26
*/
27
27
28
28
29
- /* ============================================================ */
29
+ /* ............................................................ */
30
30
/* utility/helper functions (and variables) */
31
31
32
32
var xhr ; // XMLHttpRequest object
@@ -132,7 +132,7 @@ function writeTimeInterval() {
132
132
}
133
133
134
134
/**
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)
136
136
* @param {String } str: plain text error message (no HTML)
137
137
*
138
138
* @globals div_progress_info
@@ -182,7 +182,7 @@ function getColorNo(tr) {
182
182
183
183
var colorsFreq = [ 0 , 0 , 0 ] ;
184
184
/**
185
- * return one of given possible colors (curently least used one)
185
+ * return one of given possible colors (currently least used one)
186
186
* example: chooseColorNoFrom(2, 3) returns 2 or 3
187
187
*
188
188
* @param {Number[] } arguments: one or more numbers
@@ -203,8 +203,8 @@ function chooseColorNoFrom() {
203
203
}
204
204
205
205
/**
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
208
208
*
209
209
* @param {HTMLElement } tr_prev
210
210
* @param {HTMLElement } tr_next
@@ -216,14 +216,14 @@ function findColorNo(tr_prev, tr_next) {
216
216
var color_next = getColorNo ( tr_next ) ;
217
217
218
218
219
- // neither of neighbours has color set
219
+ // neither of neighbors has color set
220
220
// THEN we can use any of 3 possible colors
221
221
if ( ! color_prev && ! color_next ) {
222
222
return chooseColorNoFrom ( 1 , 2 , 3 ) ;
223
223
}
224
224
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
227
227
// THEN we can use any color except given
228
228
var color ;
229
229
if ( color_prev === color_next ) {
@@ -237,7 +237,7 @@ function findColorNo(tr_prev, tr_next) {
237
237
return chooseColorNoFrom ( ( color % 3 ) + 1 , ( ( color + 1 ) % 3 ) + 1 ) ;
238
238
}
239
239
240
- // neighbours have different colors
240
+ // neighbors have different colors
241
241
// THEN there is only one color left
242
242
return ( 3 - ( ( color_prev + color_next ) % 3 ) ) ;
243
243
}
@@ -258,7 +258,7 @@ function isStartOfGroup(tr) {
258
258
259
259
/**
260
260
* 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
262
262
*
263
263
* @globals colorRe
264
264
*/
0 commit comments