documentcloud/backbone — pull request #1541 by wshaver (2012-08-10 19:16:05+00:00)
Title: Allow History and Router to be used on node.js

The Backbone Router is closely coupled with the History module which
relies on a number of browser based parameters. This patch allows the
use of Backbone Router and History on a server by specifying:
Backbone.history.start({server:true});

This skips the need to stub define a number of browser specific items
that cause errors in a non-browser enviornment such as
'document.documentMode'.

After implementing this flag, and overwriting
backbone.history.getFragment to read the actual server url, backbone
routes can be used on both client and server.