Skip to content

Commit b47ed9c

Browse files
committed
make it work without both capitalizations
1 parent 6d88438 commit b47ed9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataTables.rowsGroup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ RowsGroup.prototype = {
237237
};
238238

239239

240-
$.fn.dataTable.RowsGroup = RowsGroup;
241-
$.fn.DataTable.RowsGroup = RowsGroup;
240+
if ($.fn.dataTable) $.fn.dataTable.RowsGroup = RowsGroup;
241+
if ($.fn.DataTable) $.fn.DataTable.RowsGroup = RowsGroup;
242242

243243
// Automatic initialisation listener
244244
$(document).on( 'init.dt', function ( e, settings ) {

0 commit comments

Comments
 (0)