Skip to content

Commit 0549a76

Browse files
committed
fix: hasRepetition
1 parent 143d5bc commit 0549a76

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dist/js/entity/mixins/HasRepetitionMixin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ function hasRepetitionMixin(item) {
99
get repetition() {
1010
return this._repetition;
1111
},
12+
set repetition(repetition) {
13+
this._repetition = repetition;
14+
},
1215
get totalRepetitions() {
1316
return this._totalRepetitions || 1;
1417
},

src/js/entity/mixins/HasRepetitionMixin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export function hasRepetitionMixin<T extends InMemoryEntity>(
2121
get repetition() {
2222
return this._repetition;
2323
},
24+
set repetition(repetition: number) {
25+
this._repetition = repetition;
26+
},
2427
get totalRepetitions() {
2528
return this._totalRepetitions || 1;
2629
},

0 commit comments

Comments
 (0)