UNPKG

el-table-infinite-scroll

Version:
24 lines (20 loc) 434 B
/*! * el-table-infinite-scroll v3.0.7 * (c) 2019-2025 yujinpan */ 'use strict'; /** * sync element attrs */ function syncAttrs(sourceElem, targetElem, attrsKeys) { var value; attrsKeys.forEach(function (name) { value = sourceElem.getAttribute(name); if (value !== null) { targetElem.setAttribute(name, value); } else { targetElem.removeAttribute(name); } }); } exports.syncAttrs = syncAttrs;