Merge pull request #541 from tbranyen/silent-start

Silent start
This commit is contained in:
Jeremy Ashkenas
2011-08-08 07:18:33 -07:00

View File

@@ -812,7 +812,10 @@
this.fragment = loc.hash.replace(hashStrip, '');
window.history.replaceState({}, document.title, loc.protocol + '//' + loc.host + this.options.root + this.fragment);
}
return this.loadUrl();
if (!this.options.silent) {
return this.loadUrl();
}
},
// Add a route to be tested when the fragment changes. Routes added later may