Closed alexey-sh closed 10 years ago
Hey, I think this is a bug introduced in the lastest underscore. Try with version 1.4.
Hi, SBoudrias I used version 1.5.1. What the latest version do you mean, 1.5.2 ?
I just vaguely remember some people having a similar issue when switching from 1.4 to 1.5 (not properly a bug, mostly a breaking change in the way underscore handled things).
I'm just suggesting you to try your app with Underscore 1.4, if it works, then you can walk up your bug from there.
Hi @suneq, can you post a small jsfiddle example showing the code that causes this problem? Do you have pushState enabled or disabled?
You can join the IRC channel and we'll try and help you out there.
Hi, dear akre54! My app is large, so I can post only initializing code
app: {
firstHash: location.hash,
defaultHash: 'dashboard',
init: function (Router) {
location.hash = '';
Backbone.history.start();
this.router = new Router();
// something code
this.router.navigate(this.firstHash || this.defaultHash, {trigger: true})
}
}
Thank you!
Hi guys,
Sometimes my site gets an error:
My browser: Chrome/30.0.1599.101 My OS: Mac OS X 10.7.5 Backbonejs version: 1.1.0 The url: http://localhost:9020/#signin
This error began to appear yesterday. Could you please help with it? I really can't get this error manually.
Thank you