Skip to content

For what is the mixin good? #17

Open
@yckart

Description

@yckart

Why we don't just use the MicroEvent-function instead?

var MicroEvent = function (obj) {
    var props = ['on', 'off', 'trigger'],
        i = props.length;

    // https://github.com/jeromeetienne/microevent.js/issues/14#issuecomment-14873127
    obj = typeof obj === "function" ? obj.prototype : obj;
    while (i--) obj[props[i]] = Eventer.prototype[props[i]];
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions