Skip to content

Commit 0736c5e

Browse files
committed
Add copy method to baseFrame
1 parent 2a20290 commit 0736c5e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/models/baseFrame.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ class baseFrame {
6868
});
6969
}
7070

71+
static copy(frame) {
72+
return baseFrame.fromJson(frame.config, JSON.parse(frame.toJson()));
73+
}
74+
7175
get duration() {
7276
return moment(this.stop).diff(this.start) / 1000;
7377
}

0 commit comments

Comments
 (0)