3 var Backbone
= require('backbone');
4 var _
= require('lodash');
6 var Router
= Backbone
.Router
.extend({
7 constructor: function(options
) {
8 this.dialogRegion
= options
.dialogRegion
;
14 options
.routes
.forEach(function(r
) {
18 Backbone
.Router
.call(this, _
.extend(options
, { routes
: routes
}));
21 hideModal: function() {
22 this.dialogRegion
.destroy();
26 module
.exports
= Router
;