proper commonjs

This commit is contained in:
Vladislav Botvin 2015-06-30 14:37:09 +03:00
parent e2eb4feffa
commit 562b73db33

View File

@ -15,7 +15,9 @@
define(["underscore", "backbone"], factory); define(["underscore", "backbone"], factory);
} else if (typeof exports !== 'undefined') { } else if (typeof exports !== 'undefined') {
// CommonJS support // CommonJS support
module.exports = factory; var _ = require("underscore");
var Backbone = require("backbone");
module.exports = factory(_, Backbone);
} else { } else {
// Non-modular execution // Non-modular execution
factory(_, Backbone); factory(_, Backbone);
@ -825,6 +827,6 @@
} }
}) })
Backbone.UndoManager = UndoManager; return Backbone.UndoManager = UndoManager;
}); });