From 5e282965e6214ca68edef7d0fdc8f47575d8781d Mon Sep 17 00:00:00 2001 From: Emil Nordh Date: Wed, 11 Nov 2015 10:52:05 +0100 Subject: [PATCH] Fixed results --- backbone.subroute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone.subroute.js b/backbone.subroute.js index 32fb9f0..1928467 100644 --- a/backbone.subroute.js +++ b/backbone.subroute.js @@ -23,7 +23,7 @@ constructor: function(prefix, options) { // each subroute instance should have its own routes hash - this.routes = _.clone(this.routes) || {}; + this.routes = _.clone(_.result(this, 'routes')) || {}; // Prefix is optional, set to empty string if not passed this.prefix = prefix = prefix || "";