mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Dev: Tidy up new settings()
method, doesn't actually need an iterator
This commit is contained in:
parent
d051a17926
commit
c211a74079
@ -30,17 +30,15 @@ $.each( [ 'on', 'one', 'off' ], function (i, key) {
|
||||
} );
|
||||
|
||||
|
||||
_api.register( 'clear()', function ( selector, opts ) {
|
||||
_api.register( 'clear()', function () {
|
||||
return this.iterator( 'table', function ( settings ) {
|
||||
_fnClearTable( settings );
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
_api.register( 'settings()', function ( selector, opts ) {
|
||||
return this.iterator( 'table', function ( settings ) {
|
||||
return settings;
|
||||
} );
|
||||
_api.register( 'settings()', function () {
|
||||
return new _api( this.context, this.context );
|
||||
} );
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user