Doodle3D-Slicer/three.js-master/utils/npm/footer.js

14 lines
425 B
JavaScript
Raw Normal View History

2015-06-12 15:58:26 +02:00
// Export the THREE object for **Node.js**, with
// backwards-compatibility for the old `require()` API. If we're in
// the browser, add `_` as a global object via a string identifier,
// for Closure Compiler "advanced" mode.
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = THREE;
}
exports.THREE = THREE;
} else {
this['THREE'] = THREE;
}