|
@@ -126,10 +126,16 @@ export class RepetitionInstruction /*implements IComparable*/ {
|
|
this.measureIndex !== other.measureIndex
|
|
this.measureIndex !== other.measureIndex
|
|
|| this.type !== other.type
|
|
|| this.type !== other.type
|
|
|| this.alignment !== other.alignment
|
|
|| this.alignment !== other.alignment
|
|
- || this.endingIndices.length !== other.endingIndices.length
|
|
|
|
) {
|
|
) {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+ if (this.endingIndices === other.endingIndices) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ if (this.endingIndices === undefined || other.endingIndices === undefined ||
|
|
|
|
+ this.endingIndices.length !== other.endingIndices.length) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
for (let i: number = 0; i < this.endingIndices.length; i++) {
|
|
for (let i: number = 0; i < this.endingIndices.length; i++) {
|
|
if (this.endingIndices[i] !== other.endingIndices[i]) {
|
|
if (this.endingIndices[i] !== other.endingIndices[i]) {
|
|
return false;
|
|
return false;
|