Update to remove data lines attributes in the patialUpdate to gain better performance

This commit is contained in:
Cheng-Han, Wu 2016-06-17 16:33:01 +08:00
parent 614a97376d
commit a6a107eab9

View file

@ -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) {