events.js
function (eventName, fn) {
            
            if (typeof fn !== 'function') {
                throw "IllegalArgumentException: fn must be a Function.";
            }
            
            var fns = this._events[eventName];
            if (fns instanceof Array) {
                var len = fns.length;

                for (var i = len - 1; i >= 0; i--) {
                    if (fns[i] === fn) {
                        fns.splice(i, 1);
                    }
                }

                if (   fns.length !== len
                    && fns.length === 0  ) {
                    this._sendActivation('_deactivate', eventName);
                }
            }
            
            return this;
        }
function (eventName, fn) {
            
            if (typeof fn !== 'function') {
                throw "IllegalArgumentException: fn must be a Function.";
            }
            
            var fns = this._events[eventName];
            if (fns instanceof Array) {
                var len = fns.length;

                for (var i = len - 1; i >= 0; i--) {
                    if (fns[i] === fn) {
                        fns.splice(i, 1);
                    }
                }

                if (   fns.length !== len
                    && fns.length === 0  ) {
                    this._sendActivation('_deactivate', eventName);
                }
            }
            
            return this;
        }
function ( eventName , fn ) { if ( typeof fn !== 'function' ) { throw "IllegalArgumentException: fn must be a Function." ; } var fns = this . _events [ eventName ] ; if ( fns instanceof Array ) { var len = fns . length ; for ( var i = len - 1 ; i >= 0 ; i -- ) { if ( fns [ i ] === fn ) { fns . splice ( i , 1 ) ; } } if ( fns . length !== len && fns . length === 0 ) { this . _sendActivation ( '_deactivate' , eventName ) ; } } return this ; }
Removes the bind between a listener and an event.
@param eventName {String}
@param fn {Function}
@returns {Events} A pointer to this instance, allowing call chaining.
Removes the bind between a listener and an event .