Skip to content

Commit

Permalink
Fix fragment handling for passed strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Young Hahn committed Apr 15, 2011
1 parent c35a874 commit 18e7d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mvc/views.js
Expand Up @@ -27,7 +27,7 @@ Backbone.View = Backbone.View.extend({
}
},
route: function(ev) {
var fragment = this.href(ev.currentTarget);
var fragment = _(ev).isString() ? ev : this.href(ev.currentTarget);
if (fragment.charAt(0) === '/') {
// Remove the basepath from the fragment, but leave a /.
fragment = fragment.substr(Bones.settings.basepath.length - 1);
Expand Down

0 comments on commit 18e7d2a

Please sign in to comment.