src/components/meta/Events.js
function(event, name) {
            var that = this;

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

            if (!_.isUndefined(name)) {
                if (!that.__hasEventListener(event, name)) {
                    throw new Error('There is no "' + event +  (name ? '"::"' + name : '') + '" event callback!');
                }

                that.__events[event][name] = undefined;
            }
            else {

                _.each(that.__getEventListeners(event), function(listener, name) {
                    that.__events[event][name] = undefined;
                });
            }

            return that;
        }
function(event, name) {
            var that = this;

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

            if (!_.isUndefined(name)) {
                if (!that.__hasEventListener(event, name)) {
                    throw new Error('There is no "' + event +  (name ? '"::"' + name : '') + '" event callback!');
                }

                that.__events[event][name] = undefined;
            }
            else {

                _.each(that.__getEventListeners(event), function(listener, name) {
                    that.__events[event][name] = undefined;
                });
            }

            return that;
        }
function ( event , name ) { var that = this ; if ( ! ( event in that . __events ) ) { that . __events [ event ] = { } ; } if ( ! _ . isUndefined ( name ) ) { if ( ! that . __hasEventListener ( event , name ) ) { throw new Error ( 'There is no "' + event + ( name ? '"::"' + name : '' ) + '" event callback!' ) ; } that . __events [ event ] [ name ] = undefined ; } else { _ . each ( that . __getEventListeners ( event ) , function ( listener , name ) { that . __events [ event ] [ name ] = undefined ; } ) ; } return that ; }
Removes event listener for specified event

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

@throws {Error} if event listener for specified event does not exists

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