Fossil SCM

In the diff chunk loader, remove stray calls to the JS code which was removed in [61fd1e841fd].

stephan 2024-07-31 11:14 sbs-diff-css
Commit ac965480d4d8b9b3071a95adc990c56eeecdc2a2e28517c79c696d76e9bb81c7
1 file changed -3
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -400,11 +400,10 @@
400400
if(joinTr){
401401
content.push(trNext.querySelector(selector).innerHTML);
402402
}
403403
td.innerHTML = content.join('');
404404
if(joinTr) D.remove(joinTr);
405
- Diff.checkTableWidth(true);
406405
this.destroy();
407406
return this;
408407
}else if(this.FetchType.PrevDown===fetchType){
409408
/* Append context to previous TR. */
410409
// RHS line numbers...
@@ -429,11 +428,10 @@
429428
this.destroy();
430429
}else{
431430
this.maybeReplaceButtons();
432431
this.updatePosDebug();
433432
}
434
- Diff.checkTableWidth(true);
435433
return this;
436434
}else if(this.FetchType.NextUp===fetchType){
437435
/* Prepend content to next TR. */
438436
// RHS line numbers...
439437
if(doAppend){
@@ -458,11 +456,10 @@
458456
this.destroy();
459457
}else{
460458
this.maybeReplaceButtons();
461459
this.updatePosDebug();
462460
}
463
- Diff.checkTableWidth(true);
464461
return this;
465462
}else{
466463
throw new Error("Unexpected 'fetchType' value.");
467464
}
468465
},
469466
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -400,11 +400,10 @@
400 if(joinTr){
401 content.push(trNext.querySelector(selector).innerHTML);
402 }
403 td.innerHTML = content.join('');
404 if(joinTr) D.remove(joinTr);
405 Diff.checkTableWidth(true);
406 this.destroy();
407 return this;
408 }else if(this.FetchType.PrevDown===fetchType){
409 /* Append context to previous TR. */
410 // RHS line numbers...
@@ -429,11 +428,10 @@
429 this.destroy();
430 }else{
431 this.maybeReplaceButtons();
432 this.updatePosDebug();
433 }
434 Diff.checkTableWidth(true);
435 return this;
436 }else if(this.FetchType.NextUp===fetchType){
437 /* Prepend content to next TR. */
438 // RHS line numbers...
439 if(doAppend){
@@ -458,11 +456,10 @@
458 this.destroy();
459 }else{
460 this.maybeReplaceButtons();
461 this.updatePosDebug();
462 }
463 Diff.checkTableWidth(true);
464 return this;
465 }else{
466 throw new Error("Unexpected 'fetchType' value.");
467 }
468 },
469
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -400,11 +400,10 @@
400 if(joinTr){
401 content.push(trNext.querySelector(selector).innerHTML);
402 }
403 td.innerHTML = content.join('');
404 if(joinTr) D.remove(joinTr);
 
405 this.destroy();
406 return this;
407 }else if(this.FetchType.PrevDown===fetchType){
408 /* Append context to previous TR. */
409 // RHS line numbers...
@@ -429,11 +428,10 @@
428 this.destroy();
429 }else{
430 this.maybeReplaceButtons();
431 this.updatePosDebug();
432 }
 
433 return this;
434 }else if(this.FetchType.NextUp===fetchType){
435 /* Prepend content to next TR. */
436 // RHS line numbers...
437 if(doAppend){
@@ -458,11 +456,10 @@
456 this.destroy();
457 }else{
458 this.maybeReplaceButtons();
459 this.updatePosDebug();
460 }
 
461 return this;
462 }else{
463 throw new Error("Unexpected 'fetchType' value.");
464 }
465 },
466

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button