public/javascripts/yui/datatable/datatable.js
function() {
    // Reset init flag
    this._bInit = true;
    
    // Clear the RecordSet
    this._oRecordSet.reset();

    // Clear the Paginator's totalRecords if paginating
    var pag = this.get('paginator');
    if (pag) {
        pag.set('totalRecords',0);
    }

    // Clear selections
    this._unselectAllTrEls();
    this._unselectAllTdEls();
    this._aSelections = null;
    this._oAnchorRecord = null;
    this._oAnchorCell = null;
    
    // Clear sort
    this.set("sortedBy", null);
}
function() {
    // Reset init flag
    this._bInit = true;
    
    // Clear the RecordSet
    this._oRecordSet.reset();

    // Clear the Paginator's totalRecords if paginating
    var pag = this.get('paginator');
    if (pag) {
        pag.set('totalRecords',0);
    }

    // Clear selections
    this._unselectAllTrEls();
    this._unselectAllTdEls();
    this._aSelections = null;
    this._oAnchorRecord = null;
    this._oAnchorCell = null;
    
    // Clear sort
    this.set("sortedBy", null);
}
function ( ) { // Reset init flag this . _bInit = true ; // Clear the RecordSet this . _oRecordSet . reset ( ) ; // Clear the Paginator's totalRecords if paginating var pag = this . get ( 'paginator' ) ; if ( pag ) { pag . set ( 'totalRecords' , 0 ) ; } // Clear selections this . _unselectAllTrEls ( ) ; this . _unselectAllTdEls ( ) ; this . _aSelections = null ; this . _oAnchorRecord = null ; this . _oAnchorCell = null ; // Clear sort this . set ( "sortedBy" , null ) ; }
TABLE FUNCTIONS 
Resets a RecordSet with the given data and populates the page view
with the new data. Any previous data, and selection and sort states are
cleared. New data should be added as a separate step.

@method initializeTable
TABLE FUNCTIONS Resets a RecordSet with the given data and populates the page view with the new data . Any previous data and selection and sort states are cleared . New data should be added as a separate step .