koorgoo / ngCropper

AngularJS wrapper for https://github.com/fengyuanchen/cropper
107 stars 72 forks source link

Added check if trigger function exists #28

Open dularion opened 8 years ago

dularion commented 8 years ago

The reason I added this is because I got the error "trigger is not a function" over and over again, and it rendered the plugin useless. By adding these if-statements this error is circumvented, without removing the functionality that you originally intended here.