src/Event.js
function Event(name, attributes) {
    this._name = name;
    this._stopped = false;
    this._attrs = {};

    if (attributes) {
        this.setAttributes(attributes);
    }
}
function Event(name, attributes) {
    this._name = name;
    this._stopped = false;
    this._attrs = {};

    if (attributes) {
        this.setAttributes(attributes);
    }
}
A named event

@param {string} name The name of the event
@param {object} [attributes] Custom attributes for the event