RyanMullins / angular-hammer

Hammer.js v2 support for AngularJS
http://ryanmullins.github.io/angular-hammer/
MIT License
188 stars 55 forks source link

Added .$inject list to prevent problems during JS minification #1

Closed jogloran closed 9 years ago

jogloran commented 9 years ago

Minification fails due to the parameter list in hammerCustomDirective. The fix is to provide the $inject array for this function.

RyanMullins commented 9 years ago

@jogloran I've hear about this issue with magnification before. Does it also affect modules/projects that use ngAnnotation (that's my intended use, though i don't know if I document it)? Also, thanks for the fix.