Permalink
Browse files

Tiny improvement over #278

  • Loading branch information...
1 parent afe80e3 commit 0b5190334d7250d3c5668f352ce3258e1dd947a7 @diegocr diegocr committed Jun 25, 2014
Showing with 2 additions and 8 deletions.
  1. +2 −8 jspdf.plugin.from_html.js
View
@@ -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);

0 comments on commit 0b51903

Please sign in to comment.