function( type/*, args...*/ ) {
                var args = [].slice.call( arguments, 1 ),
                    opts = this.options,
                    name = 'on' + type.substring( 0, 1 ).toUpperCase() +
                        type.substring( 1 );
    
                if ( Mediator.trigger.apply( this, arguments ) === false ) {
                    return false;
                }
    
                if ( $.isFunction( opts[ name ] ) &&
                        opts[ name ].apply( this, args ) === false ) {
                    return false;
                }
    
                if ( $.isFunction( this[ name ] ) &&
                        this[ name ].apply( this, args ) === false ) {
                    return false;
                }
    
                return true;
            }
function( type/*, args...*/ ) {
                var args = [].slice.call( arguments, 1 ),
                    opts = this.options,
                    name = 'on' + type.substring( 0, 1 ).toUpperCase() +
                        type.substring( 1 );
    
                if ( Mediator.trigger.apply( this, arguments ) === false ) {
                    return false;
                }
    
                if ( $.isFunction( opts[ name ] ) &&
                        opts[ name ].apply( this, args ) === false ) {
                    return false;
                }
    
                if ( $.isFunction( this[ name ] ) &&
                        this[ name ].apply( this, args ) === false ) {
                    return false;
                }
    
                return true;
            }
function ( type /*, args...*/ ) { var args = [ ] . slice . call ( arguments , 1 ) , opts = this . options , name = 'on' + type . substring ( 0 , 1 ) . toUpperCase ( ) + type . substring ( 1 ) ; if ( Mediator . trigger . apply ( this , arguments ) === false ) { return false ; } if ( $ . isFunction ( opts [ name ] ) && opts [ name ] . apply ( this , args ) === false ) { return false ; } if ( $ . isFunction ( this [ name ] ) && this [ name ] . apply ( this , args ) === false ) { return false ; } return true ; }
需要重写此方法来来支持opts.onEvent和instance.onEvent的处理器
需要重写此方法来来支持opts . onEvent和instance . onEvent的处理器
trigger a event