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);
} else if (typeof exports !== 'undefined') {
// CommonJS support
module.exports = factory;
var _ = require("underscore");
var Backbone = require("backbone");
module.exports = factory(_, Backbone);
} else {
// Non-modular execution
factory(_, Backbone);
@ -825,6 +827,6 @@
}
})
Backbone.UndoManager = UndoManager;
return Backbone.UndoManager = UndoManager;
});