Closed p41nfu11 closed 10 years ago
Thanks for the pull request. I'm in the middle of some changes in this section, so I can't merge it yet.
Do you have a use case where we would want to do anything if there is one child? I'm thinking it makes sense to simply do the same thing if the carousel is narrower than its wrapper; nothing is moved, but the new active child gets the active class. A one child carousel would always have an active class.
But I could see something else might make more sense.
Fix issue that makes browser freeze up if the film roll is loaded with only one image and moveToIndex is called twice.
(children.length == 1 => the while loop never exits)