Update to remove data lines attributes in the patialUpdate to gain better performance
This commit is contained in:
parent
614a97376d
commit
a6a107eab9
1 changed files with 4 additions and 4 deletions
|
@ -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 a new issue