mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
remove unneeded line and return on window.location.assign
This commit is contained in:
@@ -1120,8 +1120,7 @@
|
||||
// based history, then `navigate` becomes a page refresh.
|
||||
} else {
|
||||
if (frag.indexOf(this.options.root) != 0) frag = this.options.root + frag;
|
||||
this.fragment = frag;
|
||||
window.location.assign(frag);
|
||||
return window.location.assign(frag);
|
||||
}
|
||||
if (options.trigger) this.loadUrl(fragment);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user