Skip to content

Commit

Permalink
update(HanziWriter) remove undef variable "this.isLoadingCharData" (c…
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsch authored Sep 14, 2020
1 parent 6764ef5 commit 4f7e7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HanziWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ HanziWriter.prototype._withData = function(func) {

HanziWriter.prototype._setupListeners = function() {
this.target.addPointerStartListener((evt) => {
if (this.isLoadingCharData || !this._quiz) return;
if (!this._quiz) return;
evt.preventDefault();
this._forwardToQuiz('startUserStroke', evt.getPoint());
});
this.target.addPointerMoveListener((evt) => {
if (this.isLoadingCharData || !this._quiz) return;
if (!this._quiz) return;
evt.preventDefault();
this._forwardToQuiz('continueUserStroke', evt.getPoint());
});
Expand Down

0 comments on commit 4f7e7c7

Please sign in to comment.