src/components/meta/Events.js
function(event, name, callback) {
            if (this.__hasEventListener(event, name)) {
                throw new Error('Event listener for event "' + event + '" with name "' + name + '" already exist!');
            }

            if (!(event in this.__events)) {
                this.__events[event] = {};
            }

            this.__events[event][name] = callback;

            return this;
        }
function(event, name, callback) {
            if (this.__hasEventListener(event, name)) {
                throw new Error('Event listener for event "' + event + '" with name "' + name + '" already exist!');
            }

            if (!(event in this.__events)) {
                this.__events[event] = {};
            }

            this.__events[event][name] = callback;

            return this;
        }
function ( event , name , callback ) { if ( this . __hasEventListener ( event , name ) ) { throw new Error ( 'Event listener for event "' + event + '" with name "' + name + '" already exist!' ) ; } if ( ! ( event in this . __events ) ) { this . __events [ event ] = { } ; } this . __events [ event ] [ name ] = callback ; return this ; }
Adds event listener for specified event

@param {string}   event    Event name
@param {string}   name     Listener name
@param {function} callback Listener handler
@returns {clazz|object} this

@throws {Error} if event listener for specified event already exist

@this {clazz|object}
Adds event listener for specified event