FrenchYeti/dexcalibur

View on GitHub
src/Event.js

Summary

Maintainability
A
0 mins
Test Coverage
function Event(config=null){
    this.type = null;
    this.data = null;

    if(config!=null) for(let i in config) this[i] = config[i];
    return this;
}
Event.prototype.getType = function(){
    return this.type;
}
Event.prototype.getData = function(){
    return this.data;
}   

module.exports = {
    Event: Event
};