Enter code here... var app = Sammy('#page', function () {
this.get(/\#\/(.*)/, function(context) {
console.log("hash route called");
$(".navbar-nav .dropdown").removeClass("open");
ko.cleanNode(context.$element()[0]);
var url = $$.getUrlFromHash(context.path, "/", "/");
context.load(url)
.swap()
.then(function() {
console.log("callback after partial hit");
ko.punches.enableAll();
ko.applyBindings(appVM, context.$element()[0]);
app.run();
});
});
});
app.run();
My initial route loads, the first link I click loads, then links just don't do anything. It's like Sammy crashes or something, because it still stops the default action, it just doesn't match any routes, after the first one...