3

I'm new to backbone.js and like the idea of structuring javascript. However, i've read it relies on hashbangs which Twitter is trying to eradicate.

So my question is should I not use backbone.js due to this?

noah
  • 21,289
  • 17
  • 64
  • 88
tim peterson
  • 23,653
  • 59
  • 177
  • 299

1 Answers1

4

Backbone actually just uses a hash and not a hashbang. However if you enable pushState than on modern browsers (pretty much anything other than IE) there will be no hash at all.

abraham
  • 46,583
  • 10
  • 100
  • 152
  • thanks Abraham, is enabling pushState a built-in option on backbone.js? can you explain a little further? i'm just a little confused because the browser is what "enables" pushState not you or I, just fyi, i am using jquery.pjax(),https://github.com/defunkt/jquery-pjax, for pushState in capable browsers – tim peterson Feb 21 '12 at 13:16
  • By "enable pushState" I mean enable backbone's use of pushState when the browser supports it. – abraham Feb 21 '12 at 13:37