mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-29 11:24:10 +01:00
Dev: Removing row and column .cells() methods
- Now that we have the cells() / cell() methods, with the ability to select based on column and row, and the ability to get the whole row or column cells, the TD get methods on row / rows / columns were redundant and I think should be removed for berevity. It could also get confusing with the chaining since there are nested and top level methods with the same name. - Removed: - rows().cells() - row().cells() - columns().cells()
This commit is contained in:
parent
1894b96a42
commit
f0a73ce595
@ -42,16 +42,6 @@ _api.register( 'columns().header()', function ( selector, opts ) {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
_api.register( 'columns().cells()', function () {
|
|
||||||
return this.iterator( true, 'column-rows', function ( settings, column, i, j, rows ) {
|
|
||||||
return _pluck_order( settings.aoData, rows, 'anCells', column ) ;
|
|
||||||
} );
|
|
||||||
} );
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -26,16 +26,6 @@ _api.register( 'row().node()', function () {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
_api.register( 'row().cells()', function () {
|
|
||||||
var ctx = this.context;
|
|
||||||
|
|
||||||
if ( ctx.length && this.length ) {
|
|
||||||
return ctx[0].aoData[ this[0] ].anCells || undefined;
|
|
||||||
}
|
|
||||||
// return undefined;
|
|
||||||
} );
|
|
||||||
|
|
||||||
|
|
||||||
_api.register( 'row().data()', function ( data ) {
|
_api.register( 'row().data()', function ( data ) {
|
||||||
var ctx = this.context;
|
var ctx = this.context;
|
||||||
|
|
||||||
|
@ -43,13 +43,6 @@ _api.register( 'rows().nodes()', function () {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
_api.register( 'rows().cells()', function () {
|
|
||||||
return this.iterator( true, 'row', function ( settings, row ) {
|
|
||||||
return settings.aoData[ row ].anCells || undefined;
|
|
||||||
} );
|
|
||||||
} );
|
|
||||||
|
|
||||||
|
|
||||||
_api.register( 'rows().data()', function ( data ) {
|
_api.register( 'rows().data()', function ( data ) {
|
||||||
return this.iterator( true, 'rows', function ( settings, rows ) {
|
return this.iterator( true, 'rows', function ( settings, rows ) {
|
||||||
return _pluck_order( settings.aoData, rows, '_aData' );
|
return _pluck_order( settings.aoData, rows, '_aData' );
|
||||||
|
Loading…
Reference in New Issue
Block a user