Doodle3D-Slicer/three.js-master/utils/npm/footer.js
2015-06-12 15:58:26 +02:00

14 lines
425 B
JavaScript
Executable File

// 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;
}