Skip to content

Commit

Permalink
Update drawSignature method
Browse files Browse the repository at this point in the history
Updating the drawSignature method to only push an object to the output if paths[i].lx is defined.
  • Loading branch information
thejbsmith committed Mar 7, 2016
1 parent b709969 commit 95d1c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jquery.signaturepad.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ function SignaturePad (selector, options) {
context.stroke()
context.closePath()

if (saveOutput) {
if (saveOutput && paths[i].lx) {
output.push({
'lx' : paths[i].lx
, 'ly' : paths[i].ly
Expand Down
Loading

0 comments on commit 95d1c0c

Please sign in to comment.