From 9b54c10bc62ec770eb85fb5089b9be506eb3cafb Mon Sep 17 00:00:00 2001 From: koalyptus Date: Thu, 30 Nov 2017 14:00:10 +1100 Subject: [PATCH] tidy-up code --- src/tablefilter.js | 2 -- test/test-one-row.js | 12 ++++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/tablefilter.js b/src/tablefilter.js index 9770d90b..fd897562 100644 --- a/src/tablefilter.js +++ b/src/tablefilter.js @@ -917,9 +917,7 @@ export class TableFilter { // import main stylesheet this.import(this.stylesheetId, this.getStylesheetPath(), null, 'link'); - // this.nbCells = this.getCellsNb(this.refRow); let Mod = this.Mod; - // let n = this.singleSearchFlt ? 1 : this.nbCells; let inpclass; //loads theme diff --git a/test/test-one-row.js b/test/test-one-row.js index 1383ee7c..9ddc3a20 100644 --- a/test/test-one-row.js +++ b/test/test-one-row.js @@ -10,9 +10,9 @@ test('Only headers with no rows', function() { deepEqual(tf.refRow, 2, 'Reference row index'); }); -// module('Tear-down'); -// test('TableFilter removed', function() { -// tf.clearFilters(); -// tf.destroy(); -// deepEqual(tf.isInitialized(), false, 'Filters removed'); -// }); +module('Tear-down'); +test('TableFilter removed', function() { + tf.clearFilters(); + tf.destroy(); + deepEqual(tf.isInitialized(), false, 'Filters removed'); +});