Skip to content

Commit

Permalink
Bump version to 1.2.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
szimek committed Nov 5, 2013
1 parent e62d4ee commit c0c35ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "signature_pad",
"description": "Library for drawing smooth signatures.",
"version": "1.2.2",
"version": "1.2.3",
"homepage": "https://github.com/szimek/signature_pad",
"author": {
"name": "Szymon Nowak",
Expand Down
9 changes: 5 additions & 4 deletions signature_pad.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Signature Pad v1.2.2
* Signature Pad v1.2.3
* https://github.com/szimek/signature_pad
*
* Copyright 2013 Szymon Nowak
Expand Down Expand Up @@ -55,11 +55,12 @@ var SignaturePad = (function (document) {
};

SignaturePad.prototype.fromDataURL = function (dataUrl) {
var self = this;
var self = this,
image = new Image();

this._reset();
var image = new Image();
image.src = dataUrl;
image.onload = function() {
image.onload = function () {
self._ctx.drawImage(image, 0, 0, self._canvas.width, self._canvas.height);
};
this._isEmpty = false;
Expand Down
4 changes: 2 additions & 2 deletions signature_pad.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c0c35ed

Please sign in to comment.