(el)
| 3692 | } |
| 3693 | |
| 3694 | function cloneAndRemoveDataAttr (el) { |
| 3695 | if (!el) return |
| 3696 | const rawEl = $(el).clone() |
| 3697 | rawEl.removeAttr('data-startline data-endline') |
| 3698 | rawEl.find('[data-startline]').removeAttr('data-startline data-endline') |
| 3699 | return rawEl[0] |
| 3700 | } |
| 3701 | |
| 3702 | function copyAttribute (src, des, attr) { |
| 3703 | if (src && src.getAttribute(attr) && des) { |