Abillity to collapse rubrics when grading#467
Abillity to collapse rubrics when grading#467LiamClark wants to merge 1 commit intodevhub-tud:masterfrom
Conversation
|
Yup the performance issues are weird. Liam is currently profiling that. It could be that the set of elements is much larger than thought, or that the event handler is invoked multiple times. But it seems the code is just fine and that the problem is actually caused by the fact that collapse is generally slow in Webkit. In the latter case, having this feature not performing is still better than not having this feature at all I suppose... |
| var down = "octicon-chevron-down" | ||
| var right ="octicon-chevron-right" | ||
|
|
||
| $('[data-target*="collapse-target"]').click(function() { |
There was a problem hiding this comment.
I think this query-selector is rather expensive. It might be better to instead add a class collapse-target and do document.querySelector('.collapse-target') and then put the actual value in data-target="${task?index}". You can then retrieve the index with tableRow.dataset.target

The current implementation has some performance problems on collapsing the table.
fixes #460