AmpersandJS / ampersand-router

Clientside router with fallbacks for browsers that don't support pushState. Mostly lifted from Backbone.js.
MIT License
70 stars 16 forks source link

add history started method and tests #32

Closed mcous closed 9 years ago

mcous commented 9 years ago

The history started flag is inaccessible to the application:

var Router = require('ampersand-router');
router = new Router()
console.log(router.history.started);
// undefined

This pull request adds a method to the History class that simply returns the started flag. That way the history state can be accessed with router.history.started()

bear commented 9 years ago

documentation and a test! great pull request!

mcous commented 9 years ago

🎉 glad you like it

kamilogorek commented 9 years ago

+1 @bear feel free to publish it as 1.1.0. Cheers!

wraithgar commented 9 years ago

published as v2.1.0