bradbirdsall/Swipe — pull request #107 by CreativeNotice (2012-09-06 23:05:57+00:00)
Title: Possible fix for display:none; width issues.

When this.container DOM element, or a parent element, has had
display:none; on it at any point, Swipe isn't able to use
getBoundingClientRect().width or offsetWidth to get this.container's
width.

This patch allows the dev to pass in options.parent containing a parent
DOM element known to have a static width applied or to be a percentage
width but never with display:none;