twitter/bootstrap — pull request #5308 by badcarl (2012-09-27 06:24:14+00:00)
Title: bind data-api events to document instead of body to allow body replacement

By binding data-api events to document, we can replace the body element without losing the bindings.

This is necessary to be compatible with https://github.com/rails/turbolinks and other javascript libraries that replace body.