remove an extraneous this.options

This commit is contained in:
Jeremy Ashkenas
2011-05-26 11:54:35 -04:00
parent 300c7f0e9c
commit 636e7b00a9

View File

@@ -772,7 +772,7 @@
// an existing route, and `false` otherwise.
start : function(options) {
if (historyStarted) throw new Error("Backbone.history has already been started");
this.options = _.extend({}, {root: '/'}, options);
this.options = _.extend({}, {root: '/'}, this.options, options);
this._wantsPushState = !!this.options.pushState;
this._hasPushState = !!(this.options.pushState && window.history && window.history.pushState);
var fragment = this.getFragment();