proper commonjs
This commit is contained in:
parent
e2eb4feffa
commit
562b73db33
@ -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;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user