From 891961683351e01088d2eeba9f1c9b54ebb1ec31 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 19 Nov 2013 13:54:02 +0000 Subject: [PATCH] Docs: row() and rows() API documentation --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 4fd7174f..db20b22a 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -a050abb843458cc9cf7725d4ccce7bb367e82c3e +39706899b20912b09581cc44ef838d469ab4e2fa diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 488dea05..aa86b577 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -7361,7 +7361,7 @@ } ); - _api_register( 'rows().data()', function ( data ) { + _api_register( 'rows().data()', function () { return this.iterator( true, 'rows', function ( settings, rows ) { return _pluck_order( settings.aoData, rows, '_aData' ); } ); @@ -7369,7 +7369,8 @@ _api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) { return this.iterator( 'row', function ( settings, row ) { - return type === 'search' ? row._aFilterData : row._aSortData; + var r = settings.aoData[ row ]; + return type === 'search' ? r._aFilterData : r._aSortData; } ); } ); @@ -7380,7 +7381,7 @@ } ); - _api_registerPlural( 'rows().indexes()', 'row().index()', function ( src ) { + _api_registerPlural( 'rows().indexes()', 'row().index()', function () { return this.iterator( 'row', function ( settings, row ) { return row; } );