mirror of https://github.com/status-im/codimd.git
Update to remove data lines attributes in the patialUpdate to gain better performance
This commit is contained in:
parent
614a97376d
commit
a6a107eab9
|
@ -3003,10 +3003,10 @@ function partialUpdate(src, tar, des) {
|
|||
|
||||
function cloneAndRemoveDataAttr(el) {
|
||||
if (!el) return;
|
||||
var rawEl = $(el).clone()[0];
|
||||
rawEl.removeAttribute('data-startline');
|
||||
rawEl.removeAttribute('data-endline');
|
||||
return rawEl;
|
||||
var rawEl = $(el).clone();
|
||||
rawEl.removeAttr('data-startline data-endline');
|
||||
rawEl.find('[data-startline]').removeAttr('data-startline data-endline');
|
||||
return rawEl[0];
|
||||
}
|
||||
|
||||
function copyAttribute(src, des, attr) {
|
||||
|
|
Loading…
Reference in New Issue