From b956a692717d047586b514ce885e698818205656 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 13 Nov 2013 16:22:04 +0000 Subject: [PATCH] Fix - API: Errors in plurals and signular forms of method naming --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 150707c7..1429728f 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -e0f36e7c1ee9bd20ee1c5e6406836dba90136507 +ea1d3f052c625f35711c8256b3ef43234edeb84b diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 9387ccbc..f032b8c7 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -7329,7 +7329,7 @@ } ); - _api_registerPlural( 'rows().index()', 'row().index()', function ( src ) { + _api_registerPlural( 'rows().indexes()', 'row().index()', function ( src ) { return this.iterator( 'row', function ( settings, row ) { return row; } ); @@ -7805,7 +7805,7 @@ - _api_registerPlural( 'columns().index()', 'column().index()', function ( type ) { + _api_registerPlural( 'columns().indexes()', 'column().index()', function ( type ) { return this.iterator( 'column', function ( settings, column ) { return type === 'visible' ? _fnColumnIndexToVisible( settings, column ) : @@ -7948,7 +7948,7 @@ } ); - _api_registerPlural( 'cells().nodes()', 'cell().nodes()', function () { + _api_registerPlural( 'cells().nodes()', 'cell().node()', function () { return this.iterator( 'cell', function ( settings, row, column ) { return settings.aoData[ row ].anCells[ column ]; } ); @@ -7963,7 +7963,7 @@ _api_registerPlural( 'cells().cache()', 'cell().cache()', function ( type ) { - type = type === 'filter' ? '_aFilterData' : '_aSortData'; + type = type === 'search' ? '_aFilterData' : '_aSortData'; return this.iterator( 'cell', function ( settings, row, column ) { return settings.aoData[ row ][ type ][ column ]; @@ -7971,7 +7971,7 @@ } ); - _api_registerPlural( 'cells().index()', 'cell().index()', function () { + _api_registerPlural( 'cells().indexes()', 'cell().index()', function () { return this.iterator( 'cell', function ( settings, row, column ) { return { row: row,