function _fnAjaxUpdateDraw ( settings, json )
		{
			// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
			// Support both
			var compat = function ( old, modern ) {
				return json[old] !== undefined$1 ? json[old] : json[modern];
			};
		
			var data = _fnAjaxDataSrc( settings, json );
			var draw            = compat( 'sEcho',                'draw' );
			var recordsTotal    = compat( 'iTotalRecords',        'recordsTotal' );
			var recordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' );
		
			if ( draw !== undefined$1 ) {
				// Protect against out of sequence returns
				if ( draw*1 < settings.iDraw ) {
					return;
				}
				settings.iDraw = draw * 1;
			}
		
			// No data in returned object, so rather than an array, we show an empty table
			if ( ! data ) {
				data = [];
			}
		
			_fnClearTable( settings );
			settings._iRecordsTotal   = parseInt(recordsTotal, 10);
			settings._iRecordsDisplay = parseInt(recordsFiltered, 10);
		
			for ( var i=0, ien=data.length ; i<ien ; i++ ) {
				_fnAddData( settings, data[i] );
			}
			settings.aiDisplay = settings.aiDisplayMaster.slice();
		
			_fnDraw( settings, true );
		
			if ( ! settings._bInitComplete ) {
				_fnInitComplete( settings, json );
			}
		
			_fnProcessingDisplay( settings, false );
		}
/**
		 * Data the data from the server (nuking the old) and redraw the table
		 *  @param {object} oSettings dataTables settings object
		 *  @param {object} json json data return from the server.
		 *  @param {string} json.sEcho Tracking flag for DataTables to match requests
		 *  @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering
		 *  @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering
		 *  @param {array} json.aaData The data to display on this page
		 *  @param {string} [json.sColumns] Column ordering (sName, comma separated)
		 *  @memberof DataTable#oApi
		 */
Data the data from the server (nuking the old) and redraw the table
@param {object} oSettings dataTables settings object
@param {object} json json data return from the server.
Data the data from the server ( nuking the old ) and redraw the table @param { object } oSettings dataTables settings object @param { object } json json data return from the server .
function _fnAjaxUpdateDraw ( settings, json )
		{
			var compat = function ( old, modern ) {
				return json[old] !== undefined$1 ? json[old] : json[modern];
			};
			var data = _fnAjaxDataSrc( settings, json );
			var draw            = compat( 'sEcho',                'draw' );
			var recordsTotal    = compat( 'iTotalRecords',        'recordsTotal' );
			var recordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' );
			if ( draw !== undefined$1 ) {
				if ( draw*1 < settings.iDraw ) {
					return;
				}
				settings.iDraw = draw * 1;
			}
			if ( ! data ) {
				data = [];
			}
			_fnClearTable( settings );
			settings._iRecordsTotal   = parseInt(recordsTotal, 10);
			settings._iRecordsDisplay = parseInt(recordsFiltered, 10);
			for ( var i=0, ien=data.length ; i<ien ; i++ ) {
				_fnAddData( settings, data[i] );
			}
			settings.aiDisplay = settings.aiDisplayMaster.slice();
			_fnDraw( settings, true );
			if ( ! settings._bInitComplete ) {
				_fnInitComplete( settings, json );
			}
			_fnProcessingDisplay( settings, false );
		}
function _fnAjaxUpdateDraw ( settings , json ) { var compat = function ( old , modern ) { return json [ old ] !== undefined$1 ? json [ old ] : json [ modern ] ; } ; var data = _fnAjaxDataSrc ( settings , json ) ; var draw = compat ( 'sEcho' , 'draw' ) ; var recordsTotal = compat ( 'iTotalRecords' , 'recordsTotal' ) ; var recordsFiltered = compat ( 'iTotalDisplayRecords' , 'recordsFiltered' ) ; if ( draw !== undefined$1 ) { if ( draw * 1 < settings . iDraw ) { return ; } settings . iDraw = draw * 1 ; } if ( ! data ) { data = [ ] ; } _fnClearTable ( settings ) ; settings . _iRecordsTotal = parseInt ( recordsTotal , 10 ) ; settings . _iRecordsDisplay = parseInt ( recordsFiltered , 10 ) ; for ( var i = 0 , ien = data . length ; i < ien ; i ++ ) { _fnAddData ( settings , data [ i ] ) ; } settings . aiDisplay = settings . aiDisplayMaster . slice ( ) ; _fnDraw ( settings , true ) ; if ( ! settings . _bInitComplete ) { _fnInitComplete ( settings , json ) ; } _fnProcessingDisplay ( settings , false ) ; }
Data the data from the server (nuking the old) and redraw the table
  @param {object} oSettings dataTables settings object
  @param {object} json json data return from the server.
Data the data from the server ( nuking the old ) and redraw the table @param { object } oSettings dataTables settings object @param { object } json json data return from the server .
// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation. // Support both // Protect against out of sequence returns // No data in returned object, so rather than an array, we show an empty table