Skip to content

Commit

Permalink
Removed: Can no longer initialise Scroller using the S option in `-…
Browse files Browse the repository at this point in the history
…init dom`. Use `-init scroller` instead.
  • Loading branch information
Allan Jardine committed Jul 30, 2018
1 parent 0f7cfc3 commit 28f7554
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions js/dataTables.scroller.js
Expand Up @@ -1204,27 +1204,6 @@ Scroller.version = "2.0.0-dev";
* Initialisation
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

// Legacy `dom` parameter initialisation support
if ( typeof $.fn.dataTable == "function" &&
typeof $.fn.dataTableExt.fnVersionCheck == "function" &&
$.fn.dataTableExt.fnVersionCheck('1.10.0') )
{
$.fn.dataTableExt.aoFeatures.push( {
"fnInit": function( oDTSettings ) {
var init = oDTSettings.oInit;
var opts = init.scroller || init.oScroller || {};

new Scroller( oDTSettings, opts );
},
"cFeature": "S",
"sFeature": "Scroller"
} );
}
else
{
alert( "Warning: Scroller requires DataTables 1.10.0 or greater - www.datatables.net/download");
}

// Attach a listener to the document which listens for DataTables initialisation
// events so we can automatically initialise
$(document).on( 'preInit.dt.dtscroller', function (e, settings) {
Expand Down

0 comments on commit 28f7554

Please sign in to comment.