src/console/simpleyui.js
function(type) {

        var typeIncluded = L.isString(type),
            t = (typeIncluded) ? type : (type && type.type),
            ce, ret, pre = this._yuievt.config.prefix, ce2,
            args = (typeIncluded) ? YArray(arguments, 1, true) : arguments;

        t = (pre) ? _getType(t, pre) : t;

        this._monitor('fire', t, { 
            args: args 
        });

        ce = this.getEvent(t, true);
        ce2 = this.getSibling(t, ce);

        if (ce2 && !ce) {
            ce = this.publish(t);
        }

        // this event has not been published or subscribed to
        if (!ce) {
            if (this._yuievt.hasTargets) {
                return this.bubble({ type: t }, args, this);
            }

            // otherwise there is nothing to be done
            ret = true;
        } else {
            ce.sibling = ce2;
            ret = ce.fire.apply(ce, args);
        }

        return (this._yuievt.chain) ? this : ret;
    }
function(type) {

        var typeIncluded = L.isString(type),
            t = (typeIncluded) ? type : (type && type.type),
            ce, ret, pre = this._yuievt.config.prefix, ce2,
            args = (typeIncluded) ? YArray(arguments, 1, true) : arguments;

        t = (pre) ? _getType(t, pre) : t;

        this._monitor('fire', t, { 
            args: args 
        });

        ce = this.getEvent(t, true);
        ce2 = this.getSibling(t, ce);

        if (ce2 && !ce) {
            ce = this.publish(t);
        }

        // this event has not been published or subscribed to
        if (!ce) {
            if (this._yuievt.hasTargets) {
                return this.bubble({ type: t }, args, this);
            }

            // otherwise there is nothing to be done
            ret = true;
        } else {
            ce.sibling = ce2;
            ret = ce.fire.apply(ce, args);
        }

        return (this._yuievt.chain) ? this : ret;
    }
function ( type ) { var typeIncluded = L . isString ( type ) , t = ( typeIncluded ) ? type : ( type && type . type ) , ce , ret , pre = this . _yuievt . config . prefix , ce2 , args = ( typeIncluded ) ? YArray ( arguments , 1 , true ) : arguments ; t = ( pre ) ? _getType ( t , pre ) : t ; this . _monitor ( 'fire' , t , { args : args } ) ; ce = this . getEvent ( t , true ) ; ce2 = this . getSibling ( t , ce ) ; if ( ce2 && ! ce ) { ce = this . publish ( t ) ; } // this event has not been published or subscribed to if ( ! ce ) { if ( this . _yuievt . hasTargets ) { return this . bubble ( { type : t } , args , this ) ; } // otherwise there is nothing to be done ret = true ; } else { ce . sibling = ce2 ; ret = ce . fire . apply ( ce , args ) ; } return ( this . _yuievt . chain ) ? this : ret ; }
Fire a custom event by name.  The callback functions will be executed
from the context specified when the event was created, and with the
following parameters.

If the custom event object hasn't been created, then the event hasn't
been published and it has no subscribers.  For performance sake, we
immediate exit in this case.  This means the event won't bubble, so
if the intention is that a bubble target be notified, the event must
be published on this object first.

The first argument is the event type, and any additional arguments are
passed to the listeners as parameters.  If the first of these is an
object literal, and the event is configured to emit an event facade,
that object is mixed into the event facade and the facade is provided
in place of the original object.

@method fire
@param type {String|Object} The type of the event, or an object that contains
a 'type' property.
@param arguments {Object*} an arbitrary set of parameters to pass to
the handler.  If the first of these is an object literal and the event is
configured to emit an event facade, the event facade will replace that
parameter after the properties the object literal contains are copied to
the event facade.
@return {EventTarget} the event host
Fire a custom event by name . The callback functions will be executed from the context specified when the event was created and with the following parameters .