Browse files

don't error if no options are passed to constructor

  • Loading branch information...
1 parent 99dd1fd commit b7cd4f6e8b9a004d5c7dc3d0c521e0076688bdd7 @cloudhead committed Feb 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/journey.js
View
2 lib/journey.js
@@ -80,7 +80,7 @@ journey.Router = function Router(routes, options) {
});
this.routes = [];
- this.options = mixin({}, journey.options, options);
+ this.options = mixin({}, journey.options, options || {});
if (this.options.extension) {
this.options.extension = this.options.extension.replace('.', '\\.');

0 comments on commit b7cd4f6

Please sign in to comment.