public/javascripts/yui/event/event-debug.js
function(p_type, p_fn, p_obj) {
        this.__yui_events = this.__yui_events || {};
        var evts = this.__yui_events;
        if (p_type) {
            var ce = evts[p_type];
            if (ce) {
                return ce.unsubscribe(p_fn, p_obj);
            }
        } else {
            var ret = true;
            for (var i in evts) {
                if (YAHOO.lang.hasOwnProperty(evts, i)) {
                    ret = ret && evts[i].unsubscribe(p_fn, p_obj);
                }
            }
            return ret;
        }

        return false;
    }
function(p_type, p_fn, p_obj) {
        this.__yui_events = this.__yui_events || {};
        var evts = this.__yui_events;
        if (p_type) {
            var ce = evts[p_type];
            if (ce) {
                return ce.unsubscribe(p_fn, p_obj);
            }
        } else {
            var ret = true;
            for (var i in evts) {
                if (YAHOO.lang.hasOwnProperty(evts, i)) {
                    ret = ret && evts[i].unsubscribe(p_fn, p_obj);
                }
            }
            return ret;
        }

        return false;
    }
function ( p_type , p_fn , p_obj ) { this . __yui_events = this . __yui_events || { } ; var evts = this . __yui_events ; if ( p_type ) { var ce = evts [ p_type ] ; if ( ce ) { return ce . unsubscribe ( p_fn , p_obj ) ; } } else { var ret = true ; for ( var i in evts ) { if ( YAHOO . lang . hasOwnProperty ( evts , i ) ) { ret = ret && evts [ i ] . unsubscribe ( p_fn , p_obj ) ; } } return ret ; } return false ; }
Unsubscribes one or more listeners the from the specified event
@method unsubscribe
@param p_type {string}   The type, or name of the event.  If the type
is not specified, it will attempt to remove
the listener from all hosted events.
@param p_fn   {Function} The subscribed function to unsubscribe, if not
supplied, all subscribers will be removed.
@param p_obj  {Object}   The custom object passed to subscribe.  This is
optional, but if supplied will be used to
disambiguate multiple listeners that are the same
(e.g., you subscribe many object using a function
that lives on the prototype)
@return {boolean} true if the subscriber was found and detached.
Unsubscribes one or more listeners the from the specified event