From 55fafdc05f73717626bb79359df7255c75062237 Mon Sep 17 00:00:00 2001 From: xMartin Date: Mon, 13 Oct 2014 17:29:04 +0200 Subject: [PATCH] actually export the router when used as CommonJS module --- backbone.subroute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone.subroute.js b/backbone.subroute.js index 3835e9f..83d4648 100644 --- a/backbone.subroute.js +++ b/backbone.subroute.js @@ -12,7 +12,7 @@ define(['underscore', 'backbone'], factory); } else if (typeof exports === 'object') { // Next for Node.js, CommonJS, browserify... - factory(require('underscore'), require('backbone')); + module.exports = factory(require('underscore'), require('backbone')); } else { // Browser globals for the unenlightened... factory(_, Backbone);