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) {
 | 
					function cloneAndRemoveDataAttr(el) {
 | 
				
			||||||
    if (!el) return;
 | 
					    if (!el) return;
 | 
				
			||||||
    var rawEl = $(el).clone()[0];
 | 
					    var rawEl = $(el).clone();
 | 
				
			||||||
    rawEl.removeAttribute('data-startline');
 | 
					    rawEl.removeAttr('data-startline data-endline');
 | 
				
			||||||
    rawEl.removeAttribute('data-endline');
 | 
					    rawEl.find('[data-startline]').removeAttr('data-startline data-endline');
 | 
				
			||||||
    return rawEl;
 | 
					    return rawEl[0];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function copyAttribute(src, des, attr) {
 | 
					function copyAttribute(src, des, attr) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user