Skip to content

Commit

Permalink
fix: scope is not defined in getTextDimensions (#3078)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisEbert authored Jan 28, 2021
1 parent ef70f92 commit 3592fc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ import { jsPDF } from "../jspdf.js";
var amountOfLines = 0;
var height = 0;
var tempWidth = 0;
var scope = this;

if (!Array.isArray(text) && typeof text !== "string") {
if (typeof text === "number") {
Expand Down

0 comments on commit 3592fc2

Please sign in to comment.