Son CV dans un terminal web en Javascript! https://terminal-cv.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
778 B

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _events() {
const data = _interopRequireDefault(require("events"));
_events = function () {
return data;
};
return data;
}
var _childState = require("./childState");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
class Bus extends _events().default {
emit(event, ...args) {
if (_childState.child) {
_childState.child.workerApi.callMaster({
location: __filename,
method: 'emit',
args: [event, ...args]
}, false);
return true;
} else {
return super.emit(event, ...args);
}
}
}
var _default = new Bus();
exports.default = _default;