1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-19 12:52:11 +01:00

Dev: Tidy up new settings() method, doesn't actually need an iterator

This commit is contained in:
Allan Jardine 2013-05-14 08:52:50 +01:00
parent d051a17926
commit c211a74079

View File

@ -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 );
} );