legalthings / angular-signature

HTML5 canvas based smooth signature drawing as angularJS directive (http://szimek.github.io/signature_pad/)
MIT License
105 stars 91 forks source link

JavaScript error "scope.signaturePad.on is not a function" #54

Closed flarpy closed 7 years ago

flarpy commented 7 years ago

Signature functions all work ok, but I get this in the console.

angular.min.js:123 TypeError: scope.signaturePad.on is not a function
    at signature.js:99
    at m.$digest (angular.min.js:146)
    at m.$apply (angular.min.js:149)
    at l (angular.min.js:102)
    at XMLHttpRequest.A.onload (angular.min.js:107)

Angular version 1.6.4 Jquery version 2.1.4

p0457 commented 7 years ago

Same here, just started popping up all of a sudden. Does not seem to be impacting the signature pad at all, but would love to have this error removed. Angular v1.4.9, jQuery v2.1.4,

andreanc223 commented 7 years ago

This can be fixed if the version for szimek's signature_pad is updated to anything >1.5.0 (I believe thats the earliest version containing the on and off methods)

flarpy commented 7 years ago

Thanks, worked a treat.

On 5 May 2017 at 22:05, Arnold Daniels notifications@github.com wrote:

Closed #54 https://github.com/legalthings/angular-signature/issues/54 via 7830f5f https://github.com/legalthings/angular-signature/commit/7830f5f2c9a20430fb22e5158e37cad29ffc640d .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/legalthings/angular-signature/issues/54#event-1071246312, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPLwngKfWBclWxZed1QM1bI8DSIxT1Gks5r248dgaJpZM4NPFJp .

-- Peter Dunham