Skip to content
This repository was archived by the owner on Apr 2, 2019. It is now read-only.

Commit ef2e9e5

Browse files
committed
Bug fix - now requiring backbone for CommonJS instead of expecting it as global
1 parent f8dff56 commit ef2e9e5

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module.exports = function (grunt) {
5050
' });\n' +
5151
' } else if (typeof exports === "object") {\n' +
5252
' // CommonJS\n' +
53+
' var Backbone = require("backbone");\n' +
5354
' Backbone.$ = Backbone.$ || require("jquery");\n' +
5455
' module.exports = factory(require("underscore"), Backbone);\n' +
5556
' } else {\n' +

lib/backgrid.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
});
1616
} else if (typeof exports === "object") {
1717
// CommonJS
18+
var Backbone = require("backbone");
1819
Backbone.$ = Backbone.$ || require("jquery");
1920
module.exports = factory(require("underscore"), Backbone);
2021
} else {

0 commit comments

Comments
 (0)