1
0
Fork 0
freesewing/markdown/dev/reference/api/attributes/clone/en.md
2022-02-19 08:04:25 +01:00

19 lines
295 B
Markdown

---
title: clone()
---
```js
Attributes attributes.clone()
```
Returns a new Attributes object that is a deep copy of this one.
```js
let { Path, paths } = part.shorthand();
paths.demo = new Path()
.attr('class', 'classA')
.attr('class', 'classB');
paths.clone = paths.demo.clone()
```