RyanMullins / angular-hammer

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

Minification Error #45

Open ghost opened 9 years ago

ghost commented 9 years ago

Line 168 of angular.hammer.js conditionally executes fn.call(...) if typeof fn === 'function'. Corresponding code in angular.hammer.min.js only checks for existence, i.e. b&&b.call(...) where b is the fn variable from the unminified version. This causes an error, as b is sometimes an angular object.

RyanMullins commented 9 years ago

Please verify that this is still an issue given changes merged with #55