brinley/jSignature — pull request #20 by dvdotsenko (2012-07-12 19:09:58+00:00)
Title: changed core to add: clarity, more events, functionality plugins. + first such plugin: Undo Button.

Broke apart gargantuan jSignature initializer that did not change in structure since earlier versions.

Now it's jSignatureClass with externally-specified methods.

This makes the code a bit clearer (easier to read, maintain)

I needed that ^ to add "undo last stroke" code into core.

Instead, I added "functionality extensions hooks" - plugin hooks and added UndoButton as plugin.
It all rides on top of PubSub-based event machine, so added more events that fire during jSignature init.

We (Willow Systems) are sufficiently happy now with feature-set of jSignature. So, I don't plan new big features to, rewrites of the core any time soon. Will document the API and push it up.

Daniel.