wookiehangover / backbone.hammer

Hammerjs events for Backbone
http://wookiehangover.github.io/backbone.hammer/
74 stars 21 forks source link

Remove second undelegation of hammer events #8

Closed codepunkt closed 10 years ago

codepunkt commented 10 years ago

Second undelegation of hammer events is not necessary.

Every invocation of delegateEvents invokes Backbone.View::delegateEvents which in turn invokes undelegateEvents, undelegating all hammerEvents.

Calling undelegateHammerEvents in delegateHammerEvents could still be necessary when undelegateHammerEvents is invoked directly - which i guess it never should.

wookiehangover commented 10 years ago

Thanks @gonsfx!

wookiehangover commented 10 years ago

released in v1.0.1