0.0.1 • Published 10 years ago
backbone.history_stub v0.0.1
Backbone.HistoryStub
Stubs out necessary properties in Backbone.history and the global namespace (i.e. window, document) to allow Backbone.history to run outside of browser.
Usage
install the node package: `npm install backbone.history_stub
Then stub before calling Backbone.history.start()
:
require("backbone.history_stub").stub();
Backbone.history.start();
Contributing
Add specs for any new functionality. To run the specs:
- Install jasmine-node:
npm install -g jasmine-node
- Run specs:
jasmine-node spec/
0.0.1
10 years ago