twitter/bootstrap — pull request #5266 by paradoxe (2012-09-24 20:51:19+00:00)
Title: Fix empty event.relatedTarget when carousel reaches bounds

When carousel reaches bounds (first or last carousel item), the event.relatedTarget is empty. Because of the event is initialized with an inconsistent $next element (that is fixed 3 lines after event initialization)