angular-gestures icon indicating copy to clipboard operation
angular-gestures copied to clipboard

Recognizer check fails on direct reference comparison

Open booleanbetrayal opened this issue 6 years ago • 0 comments

I'm seeing the following after upgrading an older project's angular-gestures package to include the new recognizer check added via #41 . Specifically, the line where the direct function reference comparison is made. You can see in this debug output that there is a PanRecognizer defined (2nd entry) but it fails the comparison.

screen shot 2018-09-13 at 12 09 17 pm

I'm including hammer.js and angular-gestures.js once, so I'm not sure what's creating this reference difference. Maybe making it more resilient by relying on the function name property instead makes sense though?

booleanbetrayal avatar Sep 13 '18 18:09 booleanbetrayal