From 32191272a3d10848a47e9423a37d2d7ea054ef9b Mon Sep 17 00:00:00 2001 From: Ed Moore Date: Fri, 5 Feb 2016 10:26:53 +0800 Subject: [PATCH] Fixing UMD module There was an issue when importing using webpack and it wasn't importing Backbone properly. This change seems to fix this problem --- src/backbone.marionette.handlebars.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backbone.marionette.handlebars.js b/src/backbone.marionette.handlebars.js index e8fc1c3..c84ecd0 100644 --- a/src/backbone.marionette.handlebars.js +++ b/src/backbone.marionette.handlebars.js @@ -1,6 +1,6 @@ -(function (root, define, require, exports, module, factory, undef) { +(function (root, factory) { 'use strict'; - if (typeof exports === 'object') { + if (typeof exports !== 'undefined') { // Node. Does not work with strict CommonJS, but // only CommonJS-like enviroments that support module.exports, // like Node. @@ -17,7 +17,7 @@ // Browser globals root.returnExportsGlobal = factory(root._, root.Backbone); } -}(this, this.define, this.require, this.exports, this.module, function (_, Backbone, root, undef) { +}(this, function (_, Backbone, root, undef) { 'use strict'; var oldRender; @@ -31,4 +31,4 @@ }; return Backbone.Marionette; -})); \ No newline at end of file +}));