1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

Fix - API: Errors in plurals and signular forms of method naming

This commit is contained in:
Allan Jardine 2013-11-13 16:22:04 +00:00
parent 7cf5f904d8
commit b956a69271
2 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
e0f36e7c1ee9bd20ee1c5e6406836dba90136507
ea1d3f052c625f35711c8256b3ef43234edeb84b

View File

@ -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,