so this bug is killing me as I have no clue what's going on, I updated my canjs version to the latest which is currently 2.0.4 with jquery, and the router stopped working. Is not routing anything, I try with window.location.hash and can.route.attr and is not routing. The thing that bugs me is that with the old version I had was working perfectly. Here is the code
var Router = can.Control({
'init': function() {
},
'route' : function(){
window.location.hash = '#!dashboard';
},
'dashboard route': function() {
console.log('dashboard')
}
});
$(document).ready(function() {
can.route.ready(false);
new Router($('body'));
can.route.ready(true);
});