Skip to content

Commit

Permalink
Fix: selected selector modifier should activate only when `selected…
Browse files Browse the repository at this point in the history
…` is given as a boolean value. Anything else (e.g. null) should be ignored.
  • Loading branch information
Allan Jardine committed Dec 22, 2017
1 parent 637c4d8 commit 14a3abb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/dataTables.select.js
@@ -1,12 +1,12 @@
/*! Select for DataTables 1.2.4
/*! Select for DataTables 1.2.5-dev
* 2015-2017 SpryMedia Ltd - datatables.net/license/mit
*/

/**
* @summary Select for DataTables
* @description A collection of API methods, events and buttons for DataTables
* that provides selection options of the items in a DataTable
* @version 1.2.4
* @version 1.2.5-dev
* @file dataTables.select.js
* @author SpryMedia Ltd (www.sprymedia.co.uk)
* @contact datatables.net/forums
Expand Down Expand Up @@ -54,7 +54,7 @@ var DataTable = $.fn.dataTable;
// Version information for debugger
DataTable.select = {};

DataTable.select.version = '1.2.4';
DataTable.select.version = '1.2.5-dev';

DataTable.select.init = function ( dt ) {
var ctx = dt.settings()[0];
Expand Down Expand Up @@ -730,7 +730,7 @@ $.each( [
var data;
var out = [];

if ( selected === undefined ) {
if ( selected !== true && selected !== false ) {
return indexes;
}

Expand Down

0 comments on commit 14a3abb

Please sign in to comment.