What was changed (compared to the original v0.1.2):
- Don’t modify the default settings internally.
- Merge the options recursively (deep copy) so that the custom threshold values actually get used.
- Allow overriding the options globally through
$.fn.swipe.options. - Use namespaced jQuery events (using the
swipenamespace) instead of DOM2addEventListenerto prevent errors in old IEs. - Simplified and optimized code.
- Changed
swipeLeftandswipeRightfunctions to be called within the context of the bound element. Thanks, @kswedberg!