public/javascripts/yui/datatable/datatable.js
function(e, oSelf) {
    var elTarget = Ev.getTarget(e);
    var elTag = elTarget.nodeName.toLowerCase();

    if(!Dom.isAncestor(oSelf._elContainer, elTarget)) {
        oSelf.fireEvent("tableBlurEvent");

        // Fires editorBlurEvent when click is not within the TABLE.
        // For cases when click is within the TABLE, due to timing issues,
        // the editorBlurEvent needs to get fired by the lower-level DOM click
        // handlers below rather than by the TABLE click handler directly.
        if(oSelf._oCellEditor) {
            if(oSelf._oCellEditor.getContainerEl) {
                var elContainer = oSelf._oCellEditor.getContainerEl();
                // Only if the click was not within the CellEditor container
                if(!Dom.isAncestor(elContainer, elTarget) &&
                        (elContainer.id !== elTarget.id)) {
                    oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
                }
            }
            // Backward Compatibility
            else if(oSelf._oCellEditor.isActive) {
                // Only if the click was not within the Cell Editor container
                if(!Dom.isAncestor(oSelf._oCellEditor.container, elTarget) &&
                        (oSelf._oCellEditor.container.id !== elTarget.id)) {
                    oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
                }
            }
        }
    }
}
function(e, oSelf) {
    var elTarget = Ev.getTarget(e);
    var elTag = elTarget.nodeName.toLowerCase();

    if(!Dom.isAncestor(oSelf._elContainer, elTarget)) {
        oSelf.fireEvent("tableBlurEvent");

        // Fires editorBlurEvent when click is not within the TABLE.
        // For cases when click is within the TABLE, due to timing issues,
        // the editorBlurEvent needs to get fired by the lower-level DOM click
        // handlers below rather than by the TABLE click handler directly.
        if(oSelf._oCellEditor) {
            if(oSelf._oCellEditor.getContainerEl) {
                var elContainer = oSelf._oCellEditor.getContainerEl();
                // Only if the click was not within the CellEditor container
                if(!Dom.isAncestor(elContainer, elTarget) &&
                        (elContainer.id !== elTarget.id)) {
                    oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
                }
            }
            // Backward Compatibility
            else if(oSelf._oCellEditor.isActive) {
                // Only if the click was not within the Cell Editor container
                if(!Dom.isAncestor(oSelf._oCellEditor.container, elTarget) &&
                        (oSelf._oCellEditor.container.id !== elTarget.id)) {
                    oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
                }
            }
        }
    }
}
function ( e , oSelf ) { var elTarget = Ev . getTarget ( e ) ; var elTag = elTarget . nodeName . toLowerCase ( ) ; if ( ! Dom . isAncestor ( oSelf . _elContainer , elTarget ) ) { oSelf . fireEvent ( "tableBlurEvent" ) ; // Fires editorBlurEvent when click is not within the TABLE. // For cases when click is within the TABLE, due to timing issues, // the editorBlurEvent needs to get fired by the lower-level DOM click // handlers below rather than by the TABLE click handler directly. if ( oSelf . _oCellEditor ) { if ( oSelf . _oCellEditor . getContainerEl ) { var elContainer = oSelf . _oCellEditor . getContainerEl ( ) ; // Only if the click was not within the CellEditor container if ( ! Dom . isAncestor ( elContainer , elTarget ) && ( elContainer . id !== elTarget . id ) ) { oSelf . _oCellEditor . fireEvent ( "blurEvent" , { editor : oSelf . _oCellEditor } ) ; } } // Backward Compatibility else if ( oSelf . _oCellEditor . isActive ) { // Only if the click was not within the Cell Editor container if ( ! Dom . isAncestor ( oSelf . _oCellEditor . container , elTarget ) && ( oSelf . _oCellEditor . container . id !== elTarget . id ) ) { oSelf . fireEvent ( "editorBlurEvent" , { editor : oSelf . _oCellEditor } ) ; } } } } }
Handles click events on the DOCUMENT.

@method _onDocumentClick
@param e {HTMLEvent} The click event.
@param oSelf {YAHOO.wiget.DataTable} DataTable instance.
@private
Handles click events on the DOCUMENT .