src/components/meta/Events.js
function(object, events) {
        if (!object.__isInterfaceImplemented('events')) {
            object.__implementInterface('events', this.interface);
        }

        object.__initEvents();

        _.each(events, function(eventListeners, eventName) {
            _.each(eventListeners, function(listener, listenerName) {
                object.__addEventListener(eventName, listenerName, listener);
            });
        });
    }
function(object, events) {
        if (!object.__isInterfaceImplemented('events')) {
            object.__implementInterface('events', this.interface);
        }

        object.__initEvents();

        _.each(events, function(eventListeners, eventName) {
            _.each(eventListeners, function(listener, listenerName) {
                object.__addEventListener(eventName, listenerName, listener);
            });
        });
    }
function ( object , events ) { if ( ! object . __isInterfaceImplemented ( 'events' ) ) { object . __implementInterface ( 'events' , this . interface ) ; } object . __initEvents ( ) ; _ . each ( events , function ( eventListeners , eventName ) { _ . each ( eventListeners , function ( listener , listenerName ) { object . __addEventListener ( eventName , listenerName , listener ) ; } ) ; } ) ; }
Implements events prototype and applies events to object

@param {clazz|object} object Clazz of its prototype
@param {object}       events Events

@this {metaProcessor}
Implements events prototype and applies events to object