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

isEmpty - False positives #77

Open Zeioth opened 6 years ago

Zeioth commented 6 years ago

This line of the directive

isEmpty: $scope.dataurl === EMPTY_IMAGE

should be

isEmpty: ($scope.dataurl === EMPTY_IMAGE || typeof $scope.dataurl === "undefined"),

Otherwise, you will get false positives.