javascript - Backbone.js cause bug only in IE7 -


i'm developping web app codeigniter on back-end , backbone.js on front-end. i'm using html5 boilerplate start template.

i'm using backbone's controller , history main navigation through application. i've done 1 time in past , have work fine. problem is, when start hashchange event capture backbone.history.start() , click on link example.com/#home, hash change in url, event fired 2 seconds after, hash cleared url , javascript error throw in ie7.

i've take @ source code , hashchange event acheived in ie7 creating iframe running interval check hash value change.

anyone had weird bug before , know how solve this?

the right way handle #hash base application backbone seems backbone.history.savelocation( hash ) , after backbone.history.loadurl() enable controller's routing.

whish knew before... have fun awesome mvc library :)


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -