Fossil SCM
Disabled diff context pos debug output.
Commit
4f6b56d2536f6f65df5237ef13a2e216048228d1b110e8835f607ed9a122879e
Parent
621ef5b7e8a33cb…
1 file changed
+3
-2
+3
-2
| --- src/fossil.diff.js | ||
| +++ src/fossil.diff.js | ||
| @@ -23,11 +23,11 @@ | ||
| 23 | 23 | window.fossil.onPageLoad(function(){ |
| 24 | 24 | const F = window.fossil, D = F.dom; |
| 25 | 25 | const Diff = F.diff = { |
| 26 | 26 | e:{/*certain cached DOM elements*/}, |
| 27 | 27 | config: { |
| 28 | - chunkLoadLines: 30, | |
| 28 | + chunkLoadLines: 30 /* TODO: 3x default context diff value */, | |
| 29 | 29 | chunkFetch: { |
| 30 | 30 | /* Default callack handlers for Diff.fetchArtifactChunk(), |
| 31 | 31 | unless overridden by options passeed to that function. */ |
| 32 | 32 | beforesend: function(){}, |
| 33 | 33 | aftersend: function(){}, |
| @@ -334,11 +334,12 @@ | ||
| 334 | 334 | return b; |
| 335 | 335 | }, |
| 336 | 336 | |
| 337 | 337 | updatePosDebug: function(){ |
| 338 | 338 | 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)); | |
| 340 | 341 | } |
| 341 | 342 | return this; |
| 342 | 343 | }, |
| 343 | 344 | |
| 344 | 345 | /* Attempt to clean up resources and remove some circular references to |
| 345 | 346 |
| --- 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 |