From 2de8020d4c745b33b71ea2a6a925ad8ccaafee91 Mon Sep 17 00:00:00 2001 From: abrkn Date: Wed, 14 Nov 2012 16:13:29 +0100 Subject: [PATCH] fix node.js browserify compat --- backbone-relational.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone-relational.js b/backbone-relational.js index c2db2f43..4424e08c 100755 --- a/backbone-relational.js +++ b/backbone-relational.js @@ -13,7 +13,7 @@ * CommonJS shim **/ var _, Backbone, exports; - if ( typeof window === 'undefined' ) { + if ( typeof require !== 'undefined' ) { _ = require( 'underscore' ); Backbone = require( 'backbone' ); exports = module.exports = Backbone;