*/
(function (attach) {
- if (typeof define == 'function') {
+ if (typeof exports === 'object' && typeof module === 'object') {
+ /*
+ * CommonJS environment
+ */
+ module.exports = attach.call(this);
+ } else if (typeof define == 'function') {
/*
* Require.js is available
*/
* of columns)
*/
(function (fit) {
- if (typeof define == 'function') {
+ if (typeof exports === 'object' && typeof module === 'object') {
+ /*
+ * CommonJS environment
+ */
+ module.exports = fit.call(this);
+ } else if (typeof define == 'function') {
/*
* Require.js is available
*/
* fullscreen mode is being toggled.
*/
(function (fullscreen) {
- if (typeof define == 'function') {
+ if (typeof exports === 'object' && typeof module === 'object') {
+ /*
+ * CommonJS environment
+ */
+ module.exports = fullscreen.call(this);
+ } else if (typeof define == 'function') {
/*
* Require.js is available
*/
} else {
/*
* Plain browser environment
- */
+ */
fullscreen(this.Xterm);
}
})(function (Xterm) {
this.element.classList[fn]('fullscreen');
};
-});
\ No newline at end of file
+});
(function (linkify) {
- if (typeof define == 'function') {
+ if (typeof exports === 'object' && typeof module === 'object') {
+ /*
+ * CommonJS environment
+ */
+ module.exports = linkify.call(this);
+ } else if (typeof define == 'function') {
/*
* Require.js is available
*/
(function (xterm) {
if (typeof exports === 'object' && typeof module === 'object') {
/*
- * npm/nodejs project
+ * CommonJS environment
*/
module.exports = xterm.call(this);
} else if (typeof define == 'function') {