kenwheeler/slick — pull request #616 by arbylee (2014-10-08 00:45:44+00:00)
Title: Prevent initials.touchObject from being modified

_.initials.touchObject was being modified throughout the code because
$.extend was only making a reference to the object. Anywhere that
_.touchObject was modified, _.initials.touchObject was modified as well.
This change instantiates a new object for _.touchObject each time.

This problem brought difficult-to-debug issues. For example, when
breakpoints are met and checkResponsive triggers a refresh, the
touchObject after a refresh wasn't empty! This led to unexpected slides
snapping on mousemove/mouseleave without actually clicking anything.