Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tiny improvement over #278

  • Loading branch information...
commit 0b5190334d7250d3c5668f352ce3258e1dd947a7 1 parent afe80e3
@diegocr diegocr authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 jspdf.plugin.from_html.js
View
10 jspdf.plugin.from_html.js
@@ -851,13 +851,7 @@
settings = {};
if (!settings.elementHandlers)
settings.elementHandlers = {};
-
- if (x === undefined)
- x = 4;
-
- if (y === undefined)
- y = 4;
-
- return process(this, HTML, x, y, settings, callback);
+
+ return process(this, HTML, isNaN(x) ? 4 : x, isNaN(y) ? 4 : y, settings, callback);
};
})(jsPDF.API);
Please sign in to comment.
Something went wrong with that request. Please try again.