Created
July 27, 2012 19:11
-
-
Save devth/3189896 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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