malsup/cycle2 — pull request #349 by baloneysandwiches (2013-11-07 01:08:15+00:00)
Title: don't add margins if computed width of slide is zero

If an img hasn't loaded yet, outerWidth() will return zero. The marginLeft in this case will be half the container width. This breaks layout pretty badly when the image loads after adjustSlide() has already run. Better to not apply margins in this case, and listen for img load in another way.