Skip to content

Commit

Permalink
Merge pull request #58 from QuickCorp/v2.3
Browse files Browse the repository at this point in the history
fix null pointer in effects
  • Loading branch information
jeanmachuca committed Apr 22, 2021
2 parents dfc4fe4 + bedb4ce commit df12321
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
matches.push(match);
});
return matches;
}
};
if (typeof String.prototype.matchAll === "undefined"){
String.prototype.matchAll = String.prototype.__mAll__;
}
Expand Down Expand Up @@ -3734,8 +3734,9 @@
requestAnimationFrame(animate);
} else {
// if this is an object with a done method
if (typeof this !== "undefined" &&
this.hasOwnProperty.call(this,"done") &&
if (typeof this !== "undefined"
&& this !== null
&& this.hasOwnProperty.call(this,"done") &&
(typeof this.done).toLowerCase() === "function") {
this.done.call(this);
}
Expand Down

0 comments on commit df12321

Please sign in to comment.