Skip to content

Commit 71f29bc

Browse files
committed
Set canvas delegate when returning context2d from canvas
1 parent a39d1f2 commit 71f29bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/canvas.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
/**
10-
* This plugin mimicks the HTML5 Canvas
10+
* This plugin mimics the HTML5 Canvas
1111
*
1212
* The goal is to provide a way for current canvas users to print directly to a PDF.
1313
*/
@@ -23,6 +23,7 @@
2323

2424
jsPDFAPI.canvas = {
2525
getContext : function(name) {
26+
this.pdf.context2d._canvas = this;
2627
return this.pdf.context2d;
2728
},
2829
style : {}

0 commit comments

Comments
 (0)