visionmedia/mocha — pull request #446 by hokaccha (2012-06-03 05:43:42+00:00)
Title: Fix grep url, when click title

It is only webkit that has `location.origin`. Firefox, IE , Opera don't have it.

URL is set to `http://localhost:3000/test/undefined/test?grep=foo` when a title is clicked.

`location.oring` is same as `location.protocol + '//' + location.host`. So it should use this.