Skip to content

Commit

Permalink
Merge pull request #5 from jtuulos/patch-1
Browse files Browse the repository at this point in the history
Use getFragment instead of getHash to check for initial route match
  • Loading branch information
geekdave committed Jun 8, 2012
2 parents e78ecdf + 0e528bf commit eca5fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.subroute.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Backbone.SubRoute = Backbone.Router.extend( {
Backbone.Router.prototype.constructor.call( this, options );

// grab the full URL
var hash = Backbone.history.getHash();
var hash = Backbone.history.getFragment();

// check if there is already a part of the URL that this subview cares about...
var hashPart = hash.substr( prefix.length, hash.length );
Expand Down

0 comments on commit eca5fbc

Please sign in to comment.