Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backbone.subroute.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (!Backbone) {
}

Backbone.SubRoute = Backbone.Router.extend( {
constructor:function ( prefix ) {
constructor:function ( prefix, options ) {
var routes = {};

// Prefix is optional, set to empty string if not passed
Expand All @@ -46,7 +46,7 @@ Backbone.SubRoute = Backbone.Router.extend( {
this.routes = routes;

// Required to have Backbone set up routes
Backbone.Router.prototype.constructor.call( this );
Backbone.Router.prototype.constructor.call( this, options );

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