Skip to content

Commit

Permalink
Fixed build on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Sep 10, 2023
1 parent 8d03eaf commit bbbf8f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export class Base {
}
this.onPropertyValueChangedCallback = undefined;
this.isDisposedValue = true;
Object.values(this.dependencies).forEach(dependencies => dependencies.dispose());
Object.keys(this.dependencies).forEach(key => this.dependencies[key].dispose());
}
public get isDisposed() {
return this.isDisposedValue === true;
Expand Down
4 changes: 2 additions & 2 deletions src/question_signaturepad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ export class QuestionSignaturePadModel extends Question {

this.updateColors(signaturePad);

signaturePad.addEventListener("beginStroke", () => {
(signaturePad as any).addEventListener("beginStroke", () => {
this.isDrawingValue = true;
canvas.focus();
}, { once: false });

signaturePad.addEventListener("endStroke", () => {
(signaturePad as any).addEventListener("endStroke", () => {
this.isDrawingValue = false;
this.updateValue();
}, { once: false });
Expand Down

0 comments on commit bbbf8f2

Please sign in to comment.