Fossil SCM

Disabled diff context pos debug output.

stephan 2021-09-10 23:01 diff-js-refactoring
Commit 4f6b56d2536f6f65df5237ef13a2e216048228d1b110e8835f607ed9a122879e
1 file changed +3 -2
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -23,11 +23,11 @@
2323
window.fossil.onPageLoad(function(){
2424
const F = window.fossil, D = F.dom;
2525
const Diff = F.diff = {
2626
e:{/*certain cached DOM elements*/},
2727
config: {
28
- chunkLoadLines: 30,
28
+ chunkLoadLines: 30 /* TODO: 3x default context diff value */,
2929
chunkFetch: {
3030
/* Default callack handlers for Diff.fetchArtifactChunk(),
3131
unless overridden by options passeed to that function. */
3232
beforesend: function(){},
3333
aftersend: function(){},
@@ -334,11 +334,12 @@
334334
return b;
335335
},
336336
337337
updatePosDebug: function(){
338338
if(this.e.posState){
339
- D.append(D.clearElement(this.e.posState), JSON.stringify(this.pos));
339
+ D.clearElement(this.e.posState);
340
+ //D.append(D.clearElement(this.e.posState), JSON.stringify(this.pos));
340341
}
341342
return this;
342343
},
343344
344345
/* Attempt to clean up resources and remove some circular references to
345346
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -23,11 +23,11 @@
23 window.fossil.onPageLoad(function(){
24 const F = window.fossil, D = F.dom;
25 const Diff = F.diff = {
26 e:{/*certain cached DOM elements*/},
27 config: {
28 chunkLoadLines: 30,
29 chunkFetch: {
30 /* Default callack handlers for Diff.fetchArtifactChunk(),
31 unless overridden by options passeed to that function. */
32 beforesend: function(){},
33 aftersend: function(){},
@@ -334,11 +334,12 @@
334 return b;
335 },
336
337 updatePosDebug: function(){
338 if(this.e.posState){
339 D.append(D.clearElement(this.e.posState), JSON.stringify(this.pos));
 
340 }
341 return this;
342 },
343
344 /* Attempt to clean up resources and remove some circular references to
345
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -23,11 +23,11 @@
23 window.fossil.onPageLoad(function(){
24 const F = window.fossil, D = F.dom;
25 const Diff = F.diff = {
26 e:{/*certain cached DOM elements*/},
27 config: {
28 chunkLoadLines: 30 /* TODO: 3x default context diff value */,
29 chunkFetch: {
30 /* Default callack handlers for Diff.fetchArtifactChunk(),
31 unless overridden by options passeed to that function. */
32 beforesend: function(){},
33 aftersend: function(){},
@@ -334,11 +334,12 @@
334 return b;
335 },
336
337 updatePosDebug: function(){
338 if(this.e.posState){
339 D.clearElement(this.e.posState);
340 //D.append(D.clearElement(this.e.posState), JSON.stringify(this.pos));
341 }
342 return this;
343 },
344
345 /* Attempt to clean up resources and remove some circular references to
346

Keyboard Shortcuts

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