thread-pond / signature-pad

A jQuery plugin for assisting in the creation of an HTML5 canvas based signature pad. Records the drawn signature in JSON for later regeneration.
BSD 3-Clause "New" or "Revised" License
730 stars 290 forks source link

Add an option to call change() on the hidden input #154

Closed bjerzyna closed 9 years ago

bjerzyna commented 9 years ago

I needed to store the signature in localStorage.

The onDrawEnd event is not quite right as the input value is only updated after the event is triggered, so I suggest this change to call $(settings.output, context).change() in stopDrawing().

thomasjbradley commented 9 years ago

Would it make more sense to have an onChange() method instead of triggering the change event on the <input>?