We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 141ba2a commit 2d5856fCopy full SHA for 2d5856f
1 file changed
src/worker.js
@@ -301,16 +301,16 @@ Worker.prototype.set = function set(opt) {
301
// TODO: Test null/undefined input to this function.
302
// TODO: Implement ordered pairs?
303
for (var key in opt) {
304
- if (key in Worker.template) {
305
- // Set root-level properties.
306
- this[key] = opt[key];
+ if (key in Worker.template.prop) {
+ // Set pre-defined properties.
+ this.prop[key] = opt[key];
307
} else {
308
switch (key) {
309
case 'margin':
310
this.setMargin(opt.margin);
311
break;
312
case 'jsPDF':
313
- this.jsPDF = opt.jsPDF;
+ this.opt.jsPDF = opt.jsPDF;
314
case 'pageSize':
315
this.setPageSize(opt.pageSize);
316
0 commit comments