Fossil SCM
Proactive fix for diff context loading init which would have been a bug once wikiedit and fileedit get connected to it.
Commit
63eb9d3b00d4f1993d53c731057f51d34fb5bca3a615dec02e7476706a6b8f33
Parent
efebb417336f39d…
1 file changed
+1
-1
+1
-1
| --- src/fossil.diff.js | ||
| +++ src/fossil.diff.js | ||
| @@ -654,11 +654,11 @@ | ||
| 654 | 654 | } |
| 655 | 655 | /* Potential performance-related TODO: instead of installing all |
| 656 | 656 | of these at once, install them as the corresponding TR is |
| 657 | 657 | scrolled into view. */ |
| 658 | 658 | tables.forEach(function(table){ |
| 659 | - if(!table.dataset.lefthash) return; | |
| 659 | + if(table.classList.contains('diffskipped') || !table.dataset.lefthash) return; | |
| 660 | 660 | D.addClass(table, 'diffskipped'/*avoid processing these more than once */); |
| 661 | 661 | table.querySelectorAll('tr.diffskip[data-startln]').forEach(function(tr){ |
| 662 | 662 | new ChunkLoadControls(D.addClass(tr, 'jchunk')); |
| 663 | 663 | }); |
| 664 | 664 | }); |
| 665 | 665 |
| --- src/fossil.diff.js | |
| +++ src/fossil.diff.js | |
| @@ -654,11 +654,11 @@ | |
| 654 | } |
| 655 | /* Potential performance-related TODO: instead of installing all |
| 656 | of these at once, install them as the corresponding TR is |
| 657 | scrolled into view. */ |
| 658 | tables.forEach(function(table){ |
| 659 | if(!table.dataset.lefthash) return; |
| 660 | D.addClass(table, 'diffskipped'/*avoid processing these more than once */); |
| 661 | table.querySelectorAll('tr.diffskip[data-startln]').forEach(function(tr){ |
| 662 | new ChunkLoadControls(D.addClass(tr, 'jchunk')); |
| 663 | }); |
| 664 | }); |
| 665 |
| --- src/fossil.diff.js | |
| +++ src/fossil.diff.js | |
| @@ -654,11 +654,11 @@ | |
| 654 | } |
| 655 | /* Potential performance-related TODO: instead of installing all |
| 656 | of these at once, install them as the corresponding TR is |
| 657 | scrolled into view. */ |
| 658 | tables.forEach(function(table){ |
| 659 | if(table.classList.contains('diffskipped') || !table.dataset.lefthash) return; |
| 660 | D.addClass(table, 'diffskipped'/*avoid processing these more than once */); |
| 661 | table.querySelectorAll('tr.diffskip[data-startln]').forEach(function(tr){ |
| 662 | new ChunkLoadControls(D.addClass(tr, 'jchunk')); |
| 663 | }); |
| 664 | }); |
| 665 |