(function (ns) { "use strict"; /** * @alias lib.form.element.SignaturePad * @constructor */ ns.SignaturePad = function () { this.construct.apply(this, arguments); }; ns.SignaturePad.prototype.construct = function(options, signature) { this.options = $.extend(true, { id: null, elementWrapperId: null, signatureOptions: { drawOnly: true, defaultAction: 'drawIt', validateFields: false, lineTop: 85 } }, options); $( '#' + this.options.elementWrapperId ).signaturePad(this.options.signatureOptions).regenerate(signature); }; })(qs.defineNS('lib.form.element'));