Skip to content

Conversation

hellorachid
Copy link

when a user doesn't create routes and he wanna add dynamic route subroute throw error because the varibale routes is undifined
example :
var browserModule = new Backbone.SubRoute("browser",{createTrailingSlashRoutes: true});
browserModule.route('browse',function(){console.log('browse');})

when a user doesn't create routes and he wanna add dynamic route subroute throw error because the varibale routes is undifined 
example : 
var browserModule = new Backbone.SubRoute("browser",{createTrailingSlashRoutes: true});
	browserModule.route('browse',function(){console.log('browse');})
geekdave added a commit that referenced this pull request Dec 31, 2013
geekdave added a commit that referenced this pull request Dec 31, 2013
@geekdave
Copy link
Contributor

Thanks for the fix, @hellorachid ! I've merged it in a separate PR, since I needed to add a unit test for this case in order to get code coverage to pass.

@geekdave geekdave closed this Dec 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants