An example of a sub-router #40

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+6 −1
Split
View
@@ -63,7 +63,12 @@ jQuery(function($) {
"": "index",
":hash": "index"
},
-
+ initialize: function(){
+ // If you have sub routers defined in additional modules, you can do attach them here.
+ // This enables navigation such as 'app.routers.OtherRouter.navigate'
+ //
+ // this.OtherRouter = new Other.Router();
+ },
index: function(hash) {
var route = this;
var tutorial = new Example.Views.Tutorial();