brinley / jSignature

jQuery plugin for adding web signature functionality
http://www.unbolt.net/jSignature
693 stars 530 forks source link

API "destroy" event? #87

Closed donluz closed 8 years ago

donluz commented 9 years ago

Is there any way to destroy the jSignature object? I cannot find in the API doc, but may be missing something. Right now I am having to rely on "typeof == undefined" and init jSig or not.

MickL commented 9 years ago

Maybe use .jSignature('disable')?

donluz commented 9 years ago

Good thought, but it won't work as intended. All this call does is make it so the element cannot be written on. The "destroy" would actually remove the object in memory, clear its pointer, etc and could then be re-created from scratch entirely unrelated to a prior existing one.

ianpogi5 commented 9 years ago

+1

zspitzer commented 7 years ago

This doesn't seem to completely cleanup after itself, in Chrome Dev Tools I'm seeing a reference to jSignature.parentresized under a Detached DOM tree