rails/turbolinks — pull request #149 by stevenbristol (2012-12-26 19:53:16+00:00)
Title: Fix issue when calling visit from an ajax callback outside of turbo

When someone makes an ajax call (not a turbo'd call)
obviously they don't know to call reflectNewUrl. The effect
of this omission is that the window.history.state is null
(because nothing has been pushed to it). If the result of
that ajax call happens to call Turbolinks.visit then turbo
craps out because currentState is now null.
This patch fixes that.