Skip to content

Instantly share code, notes, and snippets.

@devth
Created July 27, 2012 19:11
Show Gist options
  • Save devth/3189896 to your computer and use it in GitHub Desktop.
Save devth/3189896 to your computer and use it in GitHub Desktop.
Backbone.History.prototype.getFragment = _.wrap(Backbone.History.prototype.getFragment,
function(getFragment, fragment, forcePushState) {
// If we disabled hashChange, forcePushState should always be true
forcePushState = forcePushState || (!this._wantsHashChange);
return getFragment.call(this, fragment, forcePushState);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment