Skip to content

Instantly share code, notes, and snippets.

View fredsterss's full-sized avatar
🤔

Fred Stevens-Smith fredsterss

🤔
View GitHub Profile
@fredsterss
fredsterss / app.js
Created December 7, 2012 22:51 — forked from johnkpaul/app.js
IE9- and Backbone.history's pushState
//in your application, rather than using window.location to get the current url
App.getLocation = function(){
return window.location.protocol + '//' + window.location.host
+ '/' + Backbone.history.options.root + Backbone.history.getFragment()
}