Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Fix dynamic route add - #31

Closed
hellorachid wants to merge 1 commit into
geekdave:masterfrom
hellorachid:master
Closed

Fix dynamic route add#31
hellorachid wants to merge 1 commit into
geekdave:masterfrom
hellorachid:master

Conversation

@hellorachid

Copy link
Copy Markdown

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
Copy Markdown
Owner

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants