documentcloud/backbone — pull request #1414 by braddunbar (2012-06-15 04:11:29+00:00)
Title: Fix #1387 - getFragment trims trailing slash before removing root.

* The root should not be stripped when dealing with hashes.
* The trailing slash can be removed since the fragment is
stripped anyway. This could probably be done only once
in `start`, but is saved for a later patch.
* The mock pathname needs to prepend a slash in IE since
anchor.pathname does not contain it.