Files
Hydro/packages/ui-default/utils/cloneAttributes.js
T

7 lines
187 B
JavaScript

export default function cloneAttributes(from, to) {
const attributes = from.prop('attributes');
$.each(attributes, function () {
to.attr(this.name, this.value);
});
}